LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-05-2004, 05:24 PM   #1
al042077
LQ Newbie
 
Registered: Aug 2003
Location: Omaha, NE
Distribution: Red Hat 9, SuSE 9.0, Mandrake 10.0
Posts: 5

Rep: Reputation: 0
Question Multi-Platform Development/Programming


I work in an Windows world, but live in Linux land. I'm looking at options for learning programming such that I could code once and run that program in both environments. I know Java would work, but I'm curious if there are other options.

As I understand, most libraries are OS-dependent, so if I want to code in say C++, I have to code one for Linux based on its libraries, and a separate one for Windows with its libraries/dll's. I've heard of cross-over libraries such that I can use the same source code and just compile it on the respective system, but those didn't seem to get very good reviews.

Question is then: how do people develop the various versions of their programs? For example, Mozilla has a Linux version and a Windows version. I don't see the Java Runtime Environment logo in my system tray when I'm using it, so I assume it's some other coding language. Apache/PHP/MySQL have separate versions; granted, there are no GUI to worry about, but I have to believe other libraries would create problems.

Thanks for your comments in advance.

 
Old 04-05-2004, 05:34 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
The most common solution is to use a Multi-platform Toolkit or Library with a C or C++ program. This means the code only has to be recompiled on the platform for it to work. There are quite a few depending on the task you want.

Mozilla ( Firefox /etc..) Uses their own one, Qt is also good for this. If your thinking of OpenGL type stuff theirs GLUT or SDL. WxWindows claims to work, but I always had problems working with Windows.

If you stick with the standard libs, and mostly STL you'll probably find that it compiles well on both platforms, its when you start going graphical, or using system specific techniques ( like dll libs on windows for instance ) that you'd probably be better off with one of the above.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Platform GUI development Artik Programming 15 06-29-2005 06:36 PM
Cross platform software development ssmaitra Programming 4 05-16-2005 01:15 AM
looking for voice chat (multi-platform) deNiro Linux - Software 3 08-31-2004 02:58 PM
Uninstalling RedHat 9.1 on multi boot platform mbeutel Red Hat 1 08-07-2004 05:13 AM
Cross Platform c++ gui programming djadhav Programming 8 05-25-2004 02:15 AM


All times are GMT -5. The time now is 04:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration