Re: [xml] libxml2-2.5.7 on vs.net - additonal



Sorry, I forgot the linkers command line that should look like this:

/OUT:"../app/core_0.01.dll" /NOLOGO /DLL /DELAY:UNLOAD
/IMPLIB:"../app/core.lib" kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib LIBCMT.LIB Ws2_32.lib wininet.lib
mswsock.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
libxml2.lib  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib "\DC\libs\libxml2-2.5.7.win32\lib\libxml2.lib"

Okay, that's the linker. What about the compiler?

As for the linker, the LIBCMT.LIB is wrong. Libxml2 uses a different runtime
and your app will crash as soon you do more than reading a global variable.

At the compiler command-line, make sure things like /MD and /D_REENTRANT are
present.

Sorry, I don't know how to achieve this with your IDE. Microsoft IDEs have
been very self-explanatory so far, I think those things are clearly marked
somewhere. Of course, you must know exactly how to build a program from the
command-line before any IDE can make your life easier.

Ciao,
Igor




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]