2012-12-18 28 views
4

Possible Duplicate:
The application failed to initialize properly (0xc0150002)應用程序無法啓動(0xc0150002)與libcurl的C++ Windows 7的VS 2010

大家好,所以我跟着以下的指南來讓我的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). 
+0

這是一個非常常見的問題,只需在此頁面右上方的搜索框中鍵入「0xc0150002」即可。 –

回答

0

使用的Dependency Walker的伎倆。

http://www.dependencywalker.com/

它幫助我找出我的錯誤的確切位置,這是

我做了一些谷歌搜索,並發現該libcurl.dll ...

64位解決方案

我只需將libcurl.dll複製到C:/ Windows/SYSWOW64中 注意:您必須使用從您下載的libcurl.dll您下載的軟件包,否則由於版本不同,您將收到錯誤

相關問題