By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,231 Members | 1,707 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,231 IT Pros & Developers. It's quick & easy.

Compiling OpenGL code with MinGW

P: n/a
Hi im trying to compile some code im developing that uses opengl and
glut on mingw(using eclipse as the IDE) but im having linker errors
like:

g++ -o(OUTPUT).exe (.o files here) -lopengl32 -lglu32 -lglaux -lglut32
Warning: resolving __imp__glEnable by linking to __imp__glEnable@4
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
Warning: resolving __imp__glBlendFunc by linking to
__imp__glBlendFunc@8

.... undefined reference to `_imp__glAlphaFunc'
.... undefined reference to `_imp__glAlphaFunc'
.... undefined reference to `_imp__glGenTextures'
.... undefined reference to `_imp__glBindTexture'
.... undefined reference to `_imp__glTexParameteri'
.... undefined reference to `_imp__glTexParameteri'
.... undefined reference to `_imp__glTexParameteri'
.... undefined reference to `_imp__glTexParameteri'
.... undefined reference to `_imp__glTexEnvf'
.... undefined reference to `_imp__glTexImage2D'
.... undefined reference to `_imp__glBindTexture'

I ommited the filename and the lines where the functions are being
used the important is the error itself.
As you can see I'm linking with openl32 etc so what am I missing?
Nov 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Nov 3, 4:56*am, LoneWolf <lonewo...@gmail.comwrote:
On 3 Nov, 12:04, Zeppe <ze...@remove.all.this.long.comment.yahoo.it>
Sorry for being offtopic but I didn't found a better group to ask.
If you can advise me another more ontopic ill appreciate it.
gnu.g++.help
Nov 3 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.