DLL in Linux

Started by
11 comments, last by idinkin 20 years, 8 months ago
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..
Sometimes movement is a result of a kick in the ass!
Advertisement
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?
Sometimes movement is a result of a kick in the ass!
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?
Sometimes movement is a result of a kick in the ass!
yes.

but if you really use only cross-platform libraries, and non-platform-specific code, it shouldn''t be much trouble.
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
So which compiler do I need to use for it?
Sometimes movement is a result of a kick in the ass!
gcc

James Simmons
MindEngine Development
http://medev.sourceforge.net
ok.. thanx for your help!
Sometimes movement is a result of a kick in the ass!
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]
-----------------------------kevin@mayday-anime.comhttp://www.mayday-anime.com

This topic is closed to new replies.

Advertisement