Making .so's
I''ve made this GUI that is used in my game, and in Windows its a .dll. I''m trying to get it to compile in Linux.
The GUI seems to compile and link and all and it creates a .so for me, but when I try to compile my game that uses it it says "Undefined reference to..." every time it calls a function that''s supposed to be in the .so.
I''m including the .so when I compile with -Llibgui at the end.
Is there something I have to put before I declare the functions in the .so, like _dllexport(blah) or whatever it is, like in Windows? Is there an export library? What?
I like the DARK layout!
If you''re using "-llibgui" to link the library, your library must be called ''liblibgui.so'' (or that must be a symlink pointing to the library). Did you use the "-shared" switch when linking the final .so?
OH! liblibgui.so! Dah! All these little querks that cost me so much hair.
Now I just gotta figure out what the OpenGL libraries are called.
Now I just gotta figure out what the OpenGL libraries are called.
I like the DARK layout!
June 26, 2002 04:21 PM
quote: Original post by BradDaBug
Now I just gotta figure out what the OpenGL libraries are called.
libgl.so for OpenGL, libglu.so for GLU (so when linking you should use -lgl and -lglu).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement