程序入口点_ZNSt7_cxx1112basic_stringlcSt11char_traitslcESalcEEC1Ev不能位于动态链接库中 [英] The procedure entry point _ZNSt7_cxx1112basic_stringlcSt11char_traitslcESalcEEC1Ev could not be located in the dynamic link library

查看:1510
本文介绍了程序入口点_ZNSt7_cxx1112basic_stringlcSt11char_traitslcESalcEEC1Ev不能位于动态链接库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图使用std :: string有很大的困难。该程序编译绝对好,但是当我运行该程序时,我收到此错误:错误



我在Google上到处寻找,并没有发现如何解决这个问题。我也尝试写我的代码不同,看看是否会告诉我什么。

  std :: string yourName; 
std :: cout<< 你叫什么名字?;
std :: cin>>你的名字;
std :: cout<< 你好,<< yourName<<的std :: ENDL;

尽管重写了,但我仍然得到相同的确切错误,我不会忘记包含iostream和字符串头文件。



我使用GCC编译器,我的编译代码是 g ++ -std = c ++ 14 test.cpp -o test。 exe文件即可。我也尝试使用编译代码 g ++ test.cpp -o test.exe 。这并没有解决这个错误。



我之前在Stack Overflow上问过这个问题,但是我没有得到一个清晰可理解的答案,很可能是因为我是一个完整的编程初学者。这就是说,有人可以给我一个关于什么可能导致这个问题的答案,以及如何解决它在纯英文

解决方案

我从此链接下载了GCC: Source Forge 并重新安装GCC。我的问题已成功解决。


I am having immense difficulty trying to use std::string. The program compiles absolutely fine, but when I run the program, I receive this error: error

I have looked everywhere on google and haven't found a thing on how to solve this issue. I have also tried writing my code differently to see if that would tell me anything.

std::string yourName;
std::cout << "What is your name?";
std::cin >> yourName;
std::cout << "Hello, " << yourName << std::endl;

Despite the rewrite, I am still getting the same exact error, and I am not forgetting to include the iostream and string header files.

I am using the GCC compiler and my compile code is g++ -std=c++14 test.cpp -o test.exe. I have also tried using the compile code g++ test.cpp -o test.exe. This did not fix the error.

I have asked this question before on Stack Overflow, but I failed to get a clear and understandable answer, most likely due to the fact that I am a complete beginner in programming. That being said, can someone please give me an answer on what might be causing this problem and how to fix it in plain English?

解决方案

I downloaded GCC from this link: Source Forge and reinstalled GCC. My problems were successfully fixed.

这篇关于程序入口点_ZNSt7_cxx1112basic_stringlcSt11char_traitslcESalcEEC1Ev不能位于动态链接库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆