DLL in Linux
Hey guys!
If my engine is a DLL and I use SDL for i/o, creating windows etc. will it work on linux?
Thanx in advance..
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.
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?
Is there a posibility not to do that and to use the same file for numerous operating systems?
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.
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?
yes.
but if you really use only cross-platform libraries, and non-platform-specific code, it shouldn''t be much trouble.
but if you really use only cross-platform libraries, and non-platform-specific code, it shouldn''t be much trouble.
Here is a great how-to describing how to make any type of basic library on Linux
http://www.tldp.org/HOWTO/Program-Library-HOWTO/index.html
-----------------------------
kevin@mayday-anime.com
http://www.mayday-anime.com
edit - link
[edited by - grasshopa55 on August 12, 2003 10:17:49 AM]
http://www.tldp.org/HOWTO/Program-Library-HOWTO/index.html
-----------------------------
kevin@mayday-anime.com
http://www.mayday-anime.com
edit - link
[edited by - grasshopa55 on August 12, 2003 10:17:49 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement