wxwidgets linux and win

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
giuseppe500
In need of some credit
In need of some credit
Posts: 8
Joined: Sun Aug 03, 2008 9:26 am

wxwidgets linux and win

Post by giuseppe500 » Wed Mar 04, 2009 10:24 pm

Hy.
I'm a c++ developer and i use vs2005.
What is the best choise for create a portable application that use wxwidgets on linux(ubuntu) and win(xp)?
Thebest is start with the right foot , then
What should I know before start?
ad ex :what compiler offer the best integration?
Thanks.

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Wed Mar 04, 2009 11:06 pm

Generally, the best idea is to avoid using any platform-specific code (e.g. WinAPI) or, if you absolutely have to, put them nicely in modules, with #ifdefs. Another good recommendation is to build your program on both platforms regularly and early in the development of the project

bubo
In need of some credit
In need of some credit
Posts: 7
Joined: Tue Mar 24, 2009 7:37 pm
Location: Slovakia

Post by bubo » Fri Mar 27, 2009 10:32 am

Use mingw as your compiler: MINGW is Windows port of linux's GCC - porting between win a linux is much easier

and follow Auria's tips.

DavidHart
Site Admin
Site Admin
Posts: 4008
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart » Fri Mar 27, 2009 11:57 am

...and consider changing from vs to CodeLite, which you can use both on MSW and Linux (and Mac).

Regards,

David

ilovasz
Earned a small fee
Earned a small fee
Posts: 21
Joined: Tue Jul 10, 2007 6:56 pm

Post by ilovasz » Tue Mar 31, 2009 4:27 pm

We're using VS on Windows, Code::Blocks on Linux.
CB can import VS project/solution.
Works fine here.

LI

jacmoe
Experienced Solver
Experienced Solver
Posts: 64
Joined: Sun Feb 22, 2009 3:34 pm
Location: Denmark
Contact:

Post by jacmoe » Tue Mar 31, 2009 6:30 pm

Use the best tools on each platform.
I am writing code for both Linux and Windows - and wouldn't dream of using anything other than Visual Studio on Windows. VC is excellent, and so is GCC (on Linux).
But, of course, you can't really go wrong with CodeBlocks or CodeLite.
I just see no reason to - VS has all I need. And it's debugger is excellent. :wink:

Just keep in mind: write platform independent code - and try to work on all your platforms at the same time.

Post Reply