Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-09-2006, 11:01 PM   #1
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
Old 10-10-2006, 12:40 AM   #2
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

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 12:41 AM.
Old 10-10-2006, 03:50 AM   #3
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, 04:22 AM   #4
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
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, 08:40 AM   #5
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.


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

All times are GMT -5. The time now is 11:45 PM.

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