RE: Windows Library Help

The name mangling inside a C++ translation unit is quite different from the
C name mangling.

If you are linking this from C++ code (eg: Service.cpp?), you should
probably use extern "C" declarations of the function you use or revert to C
code (simply rename it to Service.c if you are not using C++ features). Or
you could write a thin C wrapper at least for the portion of your code using
libwww and declaring the functions extern "C".

A global solution would be if the maintainers of the libwww can add this
kind of macro stuff and replace everywhere to allow usage of libwwww within
C++ code.

#ifdef __cplusplus
#define EXTERNFUNC extern "C"
#else
#define EXTERNFUNC extern
#endif

EXTERNFUNC BOOL HTSSLhttps_init (BOOL preemptive);

/* etc ...*/


-----Original Message-----
From: Paul Accosta [mailto:paco@hungary.cc]
Sent: jeudi 10 avril 2003 19:22
To: www-lib@w3.org
Subject: Windows Library Help





Hi, Im a noob to libwww but I managed to setup a client program on linux
and now Im trying to port it over to windows. My problem is with using
MSVC6.0. I keep getting link errors like this

---snip---
Service.obj : error LNK2001: unresolved external symbol _HTSSLhttps_init
Service.obj : error LNK2001: unresolved external symbol
_HTSSL_verifyDepth_set
Service.obj : error LNK2001: unresolved external symbol
_HTSSL_protMethod_set
---snip---

Ive gone into Project->Settings->Link Tab and added a number of the
libwww libraries but it does not seem to help. Can somewone with
experience on MSVC tell me what Im doing wrong or how they did it.

Thanks
Pual Accosta




----------------------------------------------

Received on Tuesday, 15 April 2003 07:09:01 UTC