|
From: Tony P. <ap...@ea...> - 2001-07-21 12:25:42
|
On Saturday 21 July 2001 05:15 am, you wrote: > Here are the unsolved/solved with a kludge problems I encountered: > > - I get the > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strchr already defined in > LIBC.lib(strchr.obj) > etc problems :-(. > - In nav.hxx, in the line > julian_date = sgTimeCurrentMJD( 0 ) + MJD0; > it can't find sgTimeCurrentMJD. > - simgear_config.h.msvc (sp?) misses in the distribution, probably > because it is for Linux users. So, I took one from cvs from 11.7.2001 > (I have lots of CVSs lying around). > > > Here are the solved problems: > > - In FgTrim.cpp, snprintf for MSVC has to be _snprintf What's the right way to fix this? The most obvious thing is to: #if _MSC_VER #define SNPRINTF _snprintf #else #define SNPRINTF snprintf #endif or is there already a way to deal with this? > - In apt_signs, cout and endl give the namespace problem. > - In the workspace, in link, remove js.lib, add sl.lib and > wsock32.lib. Rename mk4vc60s_d.lib to mk4vc60s.lib > > Note that I compiled the release and not the debug version, therefore > the JSB sim problems etc don't arise. > > Any ideas regarding the first two problems? > Geoff? > > Bye bye, > Wolfram. > > > _______________________________________________ > Flightgear-devel mailing list > Fli...@li... > http://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Tony Peden ap...@ea... We all know Linux is great ... it does infinite loops in 5 seconds. -- attributed to Linus Torvalds |