LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Whats the Best Way to develop C++ applications.... (https://www.linuxquestions.org/questions/linux-newbie-8/whats-the-best-way-to-develop-c-applications-491007/)

RayneWolf 10-09-2006 11:01 PM

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.

Galaxy_Stranger 10-10-2006 12:40 AM

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.

Jaqui 10-10-2006 03:50 AM

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.

Zmyrgel 10-10-2006 04:22 AM

As a side note you should check out Scons so you can build the program in either linux or windows without any tweaking.

RayneWolf 10-10-2006 08:40 AM

Hmm... cool.

I'll have to look more into them.


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