To second what Richard is saying, verify that all your projects ( all plib projects, metakit, simgear and flightgear, possibly zlib ) generate the same kind of code. Look at Project -> Settings... then in the C/C++ tab choose Category = Code Generation and then look at the combo 'Use run-time library:' . You have to choose the same value for all. I use preferably 'Debug Multithreaded DLL'.
FYI: LIBCMT.lib is 'Multithreaded', LIBCMTD.lib is 'Debug Multithreaded', MSVCRT.lib is 'Multithreaded DLL', MSVCRTD.lib is 'Debug Multithreaded DLL', LIBC.lib is 'Single-Threaded' and LIBCD.lib is 'Debug Single-Threaded' Cheers, -Fred >Messsage du 24/07/2002 10:07 >De : <[EMAIL PROTECTED]> >A : <[EMAIL PROTECTED]> >Copie � : >Objet : RE: [Flightgear-devel] still not able to compile > > Recompile all projects using multithreaded apartment (of sigle threaded > if you would like) but you sannot combine them. All means SimGear, Plib, > Metakit, FlightGear... > > Richard Kis > > > -----Original Message----- > From: Christian Stock [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 24, 2002 9:53 AM > To: [EMAIL PROTECTED] > Subject: [Flightgear-devel] still not able to compile > > > I just had a big compiling session (once again, VC6.0). I tried the > default > workspace and the one I've been sent yesterday from Jonathan. Everything > > compiles (SimGear, plib, etc...) until Flightgear tries to link. Here's > what I get: > > MSVCRT.lib(MSVCRT.dll) : error LNK2005: strchr already defined in > LIBCMTD.lib(strchr.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: memmove already defined in > LIBCMTD.lib(memmove.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: strrchr already defined in > LIBCMTD.lib(strrchr.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: strpbrk already defined in > LIBCMTD.lib(strpbrk.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: strstr already defined in > LIBCMTD.lib(strstr.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: strcspn already defined in > LIBCMTD.lib(strcspn.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: free already defined in > LIBCMTD.lib(dbgheap.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: realloc already defined in > LIBCMTD.lib(dbgheap.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: malloc already defined in > LIBCMTD.lib(dbgheap.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: strdup already defined in > LIBCMT.lib(strdup.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: fclose already defined in > LIBCMTD.lib(fclose.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: fread already defined in > LIBCMTD.lib(fread.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: fwrite already defined in > LIBCMTD.lib(fwrite.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: fseek already defined in > LIBCMTD.lib(fseek.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: ftell already defined in > LIBCMTD.lib(ftell.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: time already defined in > LIBCMTD.lib(time.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: getosfhandle already defined > in > LIBCMTD.lib(osfinfo.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: fdopen already defined in > LIBCMTD.lib(fdopen.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: open already defined in > LIBCMTD.lib(open.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: fflush already defined in > LIBCMTD.lib(fflush.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: stricmp already defined in > LIBCMTD.lib(stricmp.obj) > LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other > libs; use /NODEFAULTLIB:library > LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other > libs; use /NODEFAULTLIB:library > Release/FlightGear.exe : fatal error LNK1169: one or more multiply > defined > symbols found > > This looks really silly to me. Why are LIBCMT and MSVCRT both default > libs, > when they conflict?!? I'm sure the mistake is somewhere else though... > BTW, > disabling the default libs won't help... > > Any help? > > Cheers, Christian > > > > Flightgear-devel mailing list > [EMAIL PROTECTED] > http://mail.flightgear.org/mailman/listinfo/flightgear-devel > > > > Flightgear-devel mailing list > [EMAIL PROTECTED] > http://mail.flightgear.org/mailman/listinfo/flightgear-devel > _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
