User forums > Using Code::Blocks

undefined reference

(1/4) > >>

mikethebike:
Hi
 my first CB project. I can't find which setting I forgot for that error below:
C:\Users\Michael\Desktop\C++\PC-12\main.cpp|118|undefined reference to `__imp__XPLMGetSystemPath'|
etc.
Thanks for letting me know which/where CB setting to add/change.
Regards Michael

thomas:
You need to link some library under "Build Settings".

mikethebike:
Thanks. Actually I was told VC to be incompatible to SDL therefore I move to CodeBlocks. Having the same IDE on all platforms is even an advantage...now I get some OpenGL linking issues.
"undefined reference to `_glGenTextures@8'|" etc.
Where are those located:
opengl32.lib
glu32.lib
odbc32.lib
odbccp32.lib
or how shall I fix the above errors?
Thanks again and happy easter.
Michael

thomas:
They're in MinGW's lib folder. However, you can provide the library's base name (opengl32, glu32, ...) for all system libraries. The linker will find them.

mikethebike:
Thanks Thomas. Now I get:
" You must select a host application to run a library."
Where? In build targets I've set:

Type: DLL
Output filename: E:\X-Plane 9.00\Resources\plugins\PC12.dll
Execution working dir: E:\X-Plane 9.00
Objects output dir: obj\Debug\

anything false or missing?
Thanks again and regards
Michael

Navigation

[0] Message Index

[#] Next page

Go to full version