みなさん、こんにちは。以下のガイドに従って、Visual Studio 2010 を libcurl と Windows 7 で動作させました。
ただし、上記のエラーに直面しています:
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.
だから...指示に従った後、そのエラーが発生します。何か案が?:) 同様の質問を見たことがありますが、明確に述べられた回答はありません。
デバッグ出力:
'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).