[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slightly OT - compiling OpenGL program under Windows, using cygwin

Maybe I'm mistaken, but your problem could also be the folowing:
When using cygwin, instead of i.e.

gcc -lddraw -o foo.exe foo.c

you must use

gcc -o foo.exe foo.c /lib/w32api/libddraw.a

You don't really link the import libraries like a library,
but instead like an ordinary .o module.

Hope this can help you

       Jiri Svoboda

> Hi
> This message is slightly off topic, and I apologize in advance. However,
> for the rest of the week, I am forced to use a Windows workstation, and I
> might as well try and learn something/do something with it. So -
> I am trying to get my Linux OpenGL game to compile under cygwin. It barks
> at the -lGL switch. I have tried to use -lglut -lglu32 and so forth, but
> it seems that the symbols in mode .o files are of the form
> glBindTextured@8 whereas the symbols exported from the cygwin .a files are
> on the form _glBindTexture@8
> So, anyone knows what to put in as linker flags? Would make my time here
> more interessting.
> Thanks,
> Mads
> -- 
> Mads Bondo Dydensborg.                               madsdyd@challenge.dk
> Version: 3.1
> GCS/J d- s+:+ a- C++ UL++++ P++ L++> E(++) W+ N w-- X- !tv b+ DI++ e++> h--
> ------END GEEK CODE BLOCK------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: linuxgames-unsubscribe@sunsite.dk
> For additional commands, e-mail: linuxgames-help@sunsite.dk

Casty pohyb s mysi z Vas udela kocku! http://0g.cz/0104/ladies_worldonline