using libcurl code in eclipse [message #551416] |
Fri, 06 August 2010 11:19 |
JNY Messages: 2 Registered: July 2010 |
Junior Member |
|
|
Hi,
I have some code which gcc can compile perfectly well, but when it's put into Eclipse, the curl bits kick out errors.
This bit's fine:
#include <curl/curl.h>
#define CURL_SERVER "http://www.dev_181_232.com/data_receiver_z.php"
#define CURL_MAX_POST 8192
#define CURL_MAX_BUF 65535
char curl_wr_buf[CURL_MAX_BUF+1];
int curl_wr_error;
int curl_wr_index;
char post_data[CURL_MAX_POST];
CURL *curl;
CURLcode ret;
CURLINFO info;
There's an error here:
curl = curl_easy_init();
curl.h is in the correct place. I figure I must have to set something uyp in Eclipse, rather than in the compiler, as it compiles outside Eclipse.
|
|
|
Powered by
FUDForum. Page generated in 0.03285 seconds