[ODE] could not load accelerators w/gcc (NO MSVC++)

brian_london@kallipolis.com brian_london at kallipolis.com
Mon Apr 3 15:45:37 MST 2006


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




More information about the ODE mailing list