Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » using libcurl code in eclipse
using libcurl code in eclipse [message #551416] Fri, 06 August 2010 11:19
JNY  is currently offline JNY Friend
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.
Previous Topic:Debugging a project with html, js and php files
Next Topic:Happy about coding again
Goto Forum:
  


Current Time: Tue Mar 19 02:30:38 GMT 2024

Powered by FUDForum. Page generated in 0.03285 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top