开发者

Cannot run a compiled program

开发者 https://www.devze.com 2023-03-02 13:16 出处:网络
I used the source from here http://www.luckyspin.org/?p=28 I downloaded cURL and built it with Visual Studio SDK CMD. I then pasted that code in Visual Studio 2010 (GUI开发者_如何学编程) and added t

I used the source from here

http://www.luckyspin.org/?p=28

I downloaded cURL and built it with Visual Studio SDK CMD. I then pasted that code in Visual Studio 2010 (GUI开发者_如何学编程) and added the needed paths and libs.

The program compiled fine, but on run it prompted for MSVCR90.dll. I found that file and copied it over to system32 folder. When i then ran the program i got the error

R6034 An application has made an attempt to load C runtime library incorrectly. Please contact the applications suport team for more information.

I tried then compiling it with Dev-Cpp as well, same thing.

What is wrong?


Another option is to statically link to the crt runtime library.

I don't have VS2010 but in earlier versions, you could go to the project menu, select properties, then select "Configuration Properties" / "C/C++" / "Code Generation" and choose Multithreaded instead of Multithreaded DLL from the "Runtime library" choice for the release configuration. Or choose Multithreaded Debug instead of Multithreaded Debug DLL for the debug configuration.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号