2013-10-01 75 views
1

嘿,我有相當多的編程經驗,但它已經有一段時間了。這是我的第一個程序,除了在學校的任務,所以我需要一些幫助使用curlpp進行HTTP調用服務器。我下載了C++ curlpp從提取的名爲.tar.gz那麼谷歌代碼頁在Visual Studio中引用庫鏈接,但是當我編譯我得到這個錯誤使用curlpp使GET和POST調用HTTP服務器

1>------ Build started: Project: Crypto, Configuration: Debug Win32 ------ 
1>Build started 10/1/2013 12:19:24 PM. 
1>InitializeBuildStatus: 
1> Touching "Debug\Crypto.unsuccessfulbuild". 
1>GenerateTargetFrameworkMonikerAttribute: 
1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. 
1>ClCompile: 
1> main.cpp 
1>c:\users\jay bell\documents\visual studio 2010\projects\crypto\crypto\curlpp\include\curlpp\cURLpp.hpp(34): fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory 
1> 
1>Build FAILED. 
1> 
1>Time Elapsed 00:00:00.39 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

所以我知道Visual Studio是在看正確的地方,因爲它是在捲曲頭文件中,但它對我來說似乎是當它添加標題(cURLpp.hpp)時,它試圖引用curl /文件夾中不存在的curl/curl.h(我有通過尋找它)只是想知道,如果有人可以幫助我這個我在我的代碼的唯一的事情證實了這是該

#include "curlpp\include\curlpp\cURLpp.hpp" 

using namespace System; 

int main(array<System::String ^> ^args) 
{ 

} 

感謝ADVA每個人。

+0

你有沒有想過問題是什麼? – JensB

+0

噢,上帝,我知道我做了,但我不確定修復是什麼,因爲這是很久以前的事了,我把項目交給了一個程序員,他把它轉換成了java!抱歉!。 –

回答

0

無法打開包含文件: '捲曲/ curl.h':沒有這樣的文件或目錄

要使用curlpp,您需要安裝的libcurl。

相關問題