compile gloox0.84 with iksemel error
From: "jimmy_yuhai" <jimmy_yuhai@xxxxxxx>
Date: Thu, 25 Sep 2008 09:39:47 +0200
i am using QTalk (see http://www.vckbase.com/document/viewdoc/?id=1829

for it use the old gloox0.84 ,and the gloox0.82 needs the iksemel,

i follow the README.win32(see below) of gloox0.84, but using msvc6.0 to build a 
iksemel.lib and dll,errors because  there is not 
hit to tell which function is to export in DLL? just like in c++ DLL 
class:class AFX_CLASS_EXPORT CQTalkClient

-------------------Configuration: iksemel - Win32 Debug--------------------
Linking...
mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in 
MSVCRTD.lib(dllmain.obj)
mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in 
MSVCRTD.lib(dllmain.obj); second definition ignored
   Creating library Debug/iksemel.lib and object Debug/iksemel.exp
io-posix.obj : error LNK2001: unresolved external symbol _closesocket@4
io-posix.obj : error LNK2001: unresolved external symbol _connect@12
io-posix.obj : error LNK2001: unresolved external symbol _socket@12
io-posix.obj : error LNK2001: unresolved external symbol _htons@4
io-posix.obj : error LNK2001: unresolved external symbol _gethostbyname@4
io-posix.obj : error LNK2001: unresolved external symbol _send@16
io-posix.obj : error LNK2001: unresolved external symbol _recv@16
io-posix.obj : error LNK2001: unresolved external symbol _select@20
Debug/iksemel.dll : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.

iksemel.dll - 10 error(s), 1 warning(s)

----------------------one part of README.win32----------------------
Building Iksemel
----------------
- add the following lines to iksemel/include/common.h

#ifdef WIN32
#include <stdarg.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#define strncasecmp strnicmp
#define strcasecmp stricmp
#endif

- create a new project for a static library
- add Iksemel's source files and headers
- add winsock (wsock32.lib or ws2_32.lib) to the list of used libs for the 
linker
- build






jimmy_yuhai
2008-09-25

Attachment: README.win32
Description: Binary data

-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx