Archived

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

idinkin

DLL in Linux

Recommended Posts

Cherez    175
Linux has full support for .so files (the Unix equivalent to .dll) so provided you know how to compile and load it in Linux you should be fine.

Share this post


Link to post
Share on other sites
idinkin    100
So I have to compile the code in a special Linux compiler?
Is there a posibility not to do that and to use the same file for numerous operating systems?

Share this post


Link to post
Share on other sites
fizban75    130
Yes, you have to compile your code for Linux. Try gcc. You''ll probably have to make changes to your code if you didn''t write it in a cross-platform manner, (if you used Microsoft MFC classes like CString, for example). You can''t compile on Windows or Mac and run on Linux, if that''s what you''re asking.

Share this post


Link to post
Share on other sites
idinkin    100
But I do not use platform specific APIs.. I use SDL and OpenGL and my code is written in cross-platform maner, so I have to compile it seperately for every platform?

Share this post


Link to post
Share on other sites
krez    443
yes.

but if you really use only cross-platform libraries, and non-platform-specific code, it shouldn''t be much trouble.

Share this post


Link to post
Share on other sites
tortoise    122
But what do you mean your "engine is a DLL" and you use SDL? Do you mean you are using sdl.dll? Or you yourself have written a DLL that is a part of your game?

If you''ve used SDL and your program is generally cross platform friendly, then you can use the Linux version of SDL under Linux. Did you follow SDL''s guidelines for keeping your SDL app portable? Of course you still need to recompile your own code, but the SDL end of it should be ok.

Share this post


Link to post
Share on other sites
NaliXL    120
Doesn''t the new Visual Studio generate .net code? If it''s .net, you should be able to use it directly under Linux, isn''t it?

Share this post


Link to post
Share on other sites
superpig    1825
quote:
Original post by NaliXL
If it's .net, you should be able to use it directly under Linux, isn't it?


No.

[edited by - Superpig on August 13, 2003 7:21:34 AM]

Share this post


Link to post
Share on other sites