| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
7.18.2: Compilation with MS Visual Studio 2005 causes error C2894 / extern "C" problem
From: Stefan Krause <stefan.krause_at_gmx.net>
Date: Wed, 01 Oct 2008 20:20:46 +0200
Hi libCurl users,
I have got a C++ file which includes the curl.h header and which cannot
C:\Program Files\Microsoft Platform SDK for Windows Server 2003
The file's content is:
...
extern "C"
In curl.h line 59 ws2tcpip.h is included. That file itself includes
I assume that the error occurs because I placed #include "curl/curl.h"
Now, the solution seems fairly simple. I just remove the extern "C"
In C++ files it should be enough to just include curl.h, the extern "C"
Am I right or wrong ? In case I am wrong, please point out a alterntive
Best regards,
Stefan
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info