LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-10-2006, 12:01 AM   #1
RayneWolf
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 4
Posts: 2

Rep: Reputation: 0
Whats the Best Way to develop C++ applications....


Hello, Im new to the linux community and i am just wondering...

Whats the best way/method to go about/use to develop C++ applications for Linux. Which I could then port over to Windows so that other people could use it.

Is there a way to not even have to "port" my applications to windows?


This might sound stupid, but so what...lol.
 
Old 10-10-2006, 01:40 AM   #2
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 240

Rep: Reputation: 36
Some people use non-standard libraries that are available on multiple platforms - such as SDL. As long as you don't write any system-specific code, you should theoretically be able to copy and paste your code without any changes.

SDL is specifically designed for use with the platform's API's for making games and other interfaces, so it may or may not have everything you need. But there are other multi-platform libraries. And I don't see why you couldn't use multiple libraries anyway.

Last edited by Galaxy_Stranger; 10-10-2006 at 01:41 AM.
 
Old 10-10-2006, 04:50 AM   #3
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
multi platform libraries are the way to go.
they are most commonly, QT, GTK/GDK and WxWidgets*

*WxWidgets actually templates the app and will use the system default widget set when built on the target system.
so a WxWidgets app written and built on linux will use the window manager default / GTK/GDK, on windows it will use the MFC and it will use either QT or GTK/GDK on macos, since Macos' cocoa is an objectivec rather than c++ interface set.
 
Old 10-10-2006, 05:22 AM   #4
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
As a side note you should check out Scons so you can build the program in either linux or windows without any tweaking.
 
Old 10-10-2006, 09:40 AM   #5
RayneWolf
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 4
Posts: 2

Original Poster
Rep: Reputation: 0
Hmm... cool.

I'll have to look more into them.
 
  


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
#develop Spoof-Mike Programming 0 09-30-2006 06:29 AM
how to develop caller id nick021 General 3 12-19-2005 04:44 AM
Develop Tools miguelito928 Ubuntu 1 09-26-2005 11:32 PM
Who is Knowing about daemon applications and how to develop these applications? ms_890 Linux - Software 0 04-14-2004 03:04 AM
Develop themes oakley Linux - Software 2 11-26-2003 03:29 AM


All times are GMT -5. The time now is 07:54 PM.

Main Menu
Advertisement
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