Re: [Plib-users] Error: already defined in LIBCMTD.lib
Brought to you by:
sjbaker
From: Eero P. <epa...@ko...> - 2005-02-20 19:06:29
|
> I would say that was a near certainty. Performer certainly > uses multithreading and PLIB certainly does not. > > Microsoft actually expect you to compile libraries differently > for threading versus non-threading? My appreciation of the > sheer ineptness of their products just went up another notch! Actually (even on Windows) you can compile all of your code for multithreaded execution, if you don't mind the (hopefully) small performance penalty. In my quick checking it appears that SSG is actually compiled by default (in the CVS version) for the multithreading version. The original problem: MSVCRT.lib(MSVCRT.dll) : error LNK2005: __getpid already defined in LIBCMTD.lib(getpid.obj) Seems to indicate a mismatch between using multithreaded dll based runtime (MSVCRT) and the debug multithreaded static library (LIBCMTD). The LIBCMTD might come from a debug build of SSG. I am personally using the DLL versions on my projects, mostly because of some external tools. If using the Microsoft IDE, I would recommend setting the "Runtime Library" option to same (multithreaded) value on all components. Eero |