cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl - windows mobile 6

From: Kojiru Hyuga <>
Date: Fri, 02 Apr 2010 17:15:51 +0200

Hi again,

First of all thanks for the quick reply.

Here is what I have done so far and not managed to worked out a solution.

1. Went into lib folder of the libcurl package;
2. Open the solution file in VS 2005;
3. Compiled in LIB Debug mode replacing the preprocessor from WIN32 to _WIN32_WCE and addding CURL_STATICLIB;
4. Compilation was OK with 238 warnings (almost of them were referring macro redefinition of EAGAIN, ENOMEM and ENOSPC);

5. Opened my already existing and working Win32 Project for Windows Mobile 6 Professional SDK (ARM4VI)
6. In the C/C++ properties of the project:
6a. General: Add the path to libcurl include folder (compiled previously);
6b. Preprocessor: Add the CURL_STATICLIB;

7. In the linker properties of the project:
7a. Add the path to the libcurld.lib file;
7b. Add the libcurld.lib filename in the dependicies file list;

8. Compiled the project with the following test code:

#include "curl/curl.h"

void Test(void)
 CURL* curl;
 CURLcode res;
 curl = curl_easy_init();
 curl_easy_setopt(curl, CURLOPT, "");
 res = curl_easy_perform(curl);

9. Two situations happened:
9a. First the compilation was complaining about the sys/types.h file that was not found; Why does this happen?
I have commented the lines inside the curl.h file to not include it for now and retry compilation.
9b. In the second compilation i found these errors:
error LNK2019: unresolved external symbol curl_easy_cleanup referenced in function "void __cdecl Test(void)"
error LNK2019: unresolved external symbol curl_easy_perform referenced in function "void __cdecl Test(void)"
error LNK2019: unresolved external symbol curl_easy_setopt referenced in function "void __cdecl Test(void)"
error LNK2019: unresolved external symbol curl_easy_init referenced in function "void __cdecl Test(void)"

What I did wrong or missed to do?

- P

----- Original Message -----
From: Daniel Stenberg
Sent: 04/02/10 03:37 PM
To: libcurl development
Subject: Re: libcurl - windows mobile 6

On Fri, 2 Apr 2010, Kojiru Hyuga wrote:

> What I'm focused at the moment is how to install and configure the libcurl
> in a Win32 App project/solution.

1. build libcurl for win32ce. That should be possible using more or less the
 windows build approach.

2. copy the include tree and the output .lib/.dll files to your install tree

3. build your app with the include and libs from libcurl.

4. enjoy!

For step 1, there's no particular docs I believe but previous Win CE users
have said none was needed. Don't be suprised if there's some little detail you
will need to edit in the code to make it build perfect for Win CE as I believe
that's not one of our most commonly used target architectures - even if we do
our best to keep it working fine there too.

If/when you get stuck with some problem, please detail it in a mail and post
here again!

List admin:

List admin:
Received on 2010-04-02