ofxAruco linking error ofAppGlutWindow.o [solved]

I try to compile the example from the ofxAruco addon on Win8.1 with MinGW, and i get a lot of those linking errors:

C:/dev/of_v0.9.8_msys2/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofAppGlutWindow.o):ofAppGlutWindow.cpp:(.text+0x157): undefined reference to `_imp__glutGet@4'

I looked inside libopenFrameworks.a and ofAppGlutWindow.o is there.
All is compiled with the c++11 standard, for 32bit architecture.

I use:
OpenFrameworks 0.9.8
MinGW
Make 4.2.1
gcc 6.2.0

To create the makefile for the ofxAruco library i used:
Cmake 3.7.0

Why the linker can’t find the functions in the object file?

Maybe for a plan B: Where i have to look to know exactly which source files needs other files (if i want to create from scratch a new makefile)

If you need more information to help me to solve this issue, just ask :slight_smile:

Thank you!

Ok i found what was my problem.
I understand the output the wrong way around. I understood that what i was compiling serched in ofAppGlutWindow.o the reference to _imp__glutGet@4 . But actually ofAppGlutWindow.o search the reference to _imp__glutGet@4 .
So i have to link the glut library, in my case libfreeglut.dll so i have to add -lfreeglut. reference

Thankyou!