Frederic Bouvier wrote:
Frank Olaf wrote :
However, a new problem has presented itself.  When compiling
flightgear configured with --enable-sdl, it works for some time until
I get the following error:
Making all in GUI
make[1]: Entering directory `/fgcnew/flightgear/source/src/GUI'
g++  -g -O2 -D_REENTRANT  -L/fg/lib -o layout-test.exe  layout-test.o
libGUI.a -lsgprops -lsgdebug -lsgstructure -lsgmisc -lsgxml -lplibpw
-lplibpu -lplibfnt -lplibul -lSDL  -lglu32 -lopengl32 -luser32 -lgdi32
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o)::
undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make[1]: *** [layout-test.exe] Error 1
make[1]: Leaving directory `/fgcnew/flightgear/source/src/GUI'
make: *** [all-recursive] Error 1

have you got an easy fix for this to?




if Main/bootstrap.cxx, there is this piece of code :


#ifdef _MSC_VER
int main ( int argc, char **argv );
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
                             LPSTR lpCmdLine, int nCmdShow) {

  main( __argc, __argv );
}
#endif



_MSC_VER is defined by the MSVC compiler. If SDL needs a WinMain
function, you should change the #ifdef _MSC_VER by something appropriate.

#if 1 to begin with

-Fred
I have now tried this with a clean build, but to no avail.

--
Frank Olaf Sem-Jacobsen



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to