Archived

This topic is now archived and is closed to further replies.

Making .so's

This topic is 5650 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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).

Share this post


Link to post
Share on other sites