[ODE] could not load accelerators w/gcc (NO MSVC++)
Rodrigo Hernandez
kwizatz at aeongames.com
Mon Apr 3 15:51:42 MST 2006
You have to compile the resources.rc file with windres, IE:
windres resources.rc -o resources.o
then link the resulting resources.o file with the other object files.
brian_london at kallipolis.com wrote:
>Hi, I downloaded the cygwin ode library and seperately downloaded the
>source. When trying to compile the demos, the ones that do not use
>drawstuff work fine but the others give the "could not load accelerators"
>message. The precomiled versions that came with the binary install worked
>fine.
>
>I am compiling as follows.
>
>gcc -Wall -DdDOUBLE -o test_crash test_crash.cpp -lode -ldrawstuff
>-L/usr/X11R6/lib -lGL -lGLU -lGLUT -lgdi32 -lstdc++
>
>Also, removing "-DdDOUBLE" or adding "-DCYGWIN", "-DWIN32", "-include
>../../drawstuff/src/resource.h" and all combinations thereof gave the same
>result.
>
>$ gcc -Wall -DdDOUBLE -include ../../drawstuff/src/resource.h -include
>../../drawstuff/src/resources.rc -o test_crash test_crash.cpp -lode
>-ldrawstuff -L/usr/X11R6/lib -lGL -lGLU -lGLUT -lgdi32 -lstdc++
>
>Yields:
>
>In file included from
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32a
>pi/winresrc.h:8,
> from ./../../drawstuff/src/resources.rc:13,
> from <command line>:8:
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winuser.h:2364:
>error: typedef `BOOL' is initialized (use __typeof__ instead)
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winuser.h:2364:
>error: `CALLBACK' was not declared in this scope
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winuser.h:2364:
>error: `DLGPROC' was not declared in this scope
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winuser.h:2364:
>error: expected `,' or `;' before '(' token
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winuser.h:2365:
>error: typedef `VOID' is initialized (use __typeof__ instead)
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winuser.h:2365:
>error: `CALLBACK' was not declared in this scope
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winuser.h:2365:
>error: `TIMERPROC' was not declared in this scope
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winuser.h:2365:
>error: expected `,' or `;' before '(' token
>/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winuser.h:2366:
>error: expected `)' before '*' token
>
> ...and so on
>
>
>_______________________________________________
>ODE mailing list
>ODE at q12.org
>http://q12.org/mailman/listinfo/ode
>
>
>
More information about the ODE
mailing list