应用程序无法使用libcurl C ++ Windows 7 VS 2010启动(0xc0150002) [英] The application was unable to start (0xc0150002) with libcurl C++ Windows 7 VS 2010

查看:597
本文介绍了应用程序无法使用libcurl C ++ Windows 7 VS 2010启动(0xc0150002)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

应用程序无法正确初始化(0xc0150002)

Hi Everyone所以我遵循下面的指南,让我的Visual Studio 2010与libcurl和工作。 Windows 7。

Hi Everyone so i followed the guide below to get my Visual Studio 2010 to work with libcurl & Windows 7.

链接1
链接2

但我面临上述错误:

The application was unable to start (0xc0150002)

步骤:

A:设置

Create Empty Project & add in source file provided by libcurl (simple.c)

B:链接库

You may try pressing F7, but it won’t work. You need to set up your
linker and what-not. On the toolbar, go to Project>Properties

Go to Configuration Properties>VC++ Directories>Include Directories
and go to <Edit> (click on the drop-down arrow to the right)

Create a new line and browse for your cURL directory. Browse for
cURL>include>curl and then click "OK"

Next, create a new line for Library Directories and navigate for
cURL>lib>Debug and then click "OK"

Lastly, under Configuration Properties>Linker>Input, edit the
Additional Dependencies and create a new line

Browse for cURL>lib>Debug>curllib.lib and paste its source link into
your Additional Dependencies dialogue box

C:示例代码

During run-time, however, there will be errors due to missing DLL files. 
This can be easily fixed by copying and pasting curllib.dll, libeay32.dll, openldap.dll,
and ssleay32.dll from the cURL directory and into your project folder.

所以...按照说明我得到那个错误。任何想法? :)
我遇到了类似的问题,但没有明确的答案。

So... after following the instructions i get that error. any idea? :) I have seen similar questions, but there is no clearly stated answers.

调试输出

'dummy.exe': Loaded 'C:\Users\lyon\Documents\Visual Studio 2010\Projects\dummy\Release\dummy.exe', Symbols loaded.
'dummy.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'dummy.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'dummy.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'dummy.exe': Loaded 'C:\Users\lyon\Documents\Visual Studio 2010\Projects\dummy\dummy\curllib.dll', Binary was not built with debug information.
The program '[3740] dummy.exe: Native' has exited with code -1072365566 (0xc0150002).


推荐答案

使用Dependency Walker

Using Dependency Walker Did the trick.

http://www.dependencywalker.com/

它帮助我确定我的错误的确切位置是libcurl.dll

It helped me pinpoint the exact location of my error which was the libcurl.dll

我做了一个小小的搜索...

I did a little googling and found out that...

64位解决方案

do是将libcurl.dll复制到C:/ Windows / SYSWOW64
注意:您必须使用从您下载的软件包下载的libcurl.dll,否则您将收到错误,因为版本不同

All i had to do is copy libcurl.dll into C:/Windows/SYSWOW64 Note: You have to use the libcurl.dll that you downloaded from the package you downloaded or else you will get errors as the version is different

这篇关于应用程序无法使用libcurl C ++ Windows 7 VS 2010启动(0xc0150002)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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