【问题标题】:The application was unable to start (0xc0150002) with libcurl C++ Windows 7 VS 2010 [duplicate]该应用程序无法使用 libcurl C++ Windows 7 VS 2010 启动 (0xc0150002) [重复]
【发布时间】:2012-12-18 13:44:20
【问题描述】:

可能重复:
The application failed to initialize properly (0xc0150002)

大家好,所以我按照下面的指南让我的 Visual Studio 2010 与 libcurl 和 Windows 7 一起工作。

Link 1 Link 2

但是我面临上述错误:

The application was unable to start (0xc0150002)

我仔细按照步骤操作:

答:设置

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.

所以...按照说明操作后,我收到了该错误。任何想法? :) 我见过类似的问题,但没有明确的答案。

调试输出:

'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).

【问题讨论】:

  • 这是一个很常见的问题,只需在本页右上角的搜索框中输入“0xc0150002”即可。

标签: c++ visual-studio-2010 libcurl


【解决方案1】:

使用 Dependency Walker 成功了。

http://www.dependencywalker.com/

它帮助我查明了错误的确切位置,即 libcurl.dll

我用谷歌搜索了一下,发现...

64 位解决方案

我所要做的就是将 libcurl.dll 复制到 C:/Windows/SYSWOW64 注意:你必须使用你从你下载的包中下载的libcurl.dll,否则你会因为版本不同而出错

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-25
    • 2014-09-02
    • 2017-05-18
    相关资源
    最近更新 更多