Jump to content
  • Advertisement

Archived

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

BradDaBug

Making .so's

This topic is 5929 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
Advertisement
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?

Share this post


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

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
Guest Anonymous Poster
Umm, yeah, that''s what I meant , sorry.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!