Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: efair on November 27, 2011, 06:56:55 pm

Title: noob developing one app for two platforms
Post by: efair on November 27, 2011, 06:56:55 pm
I am a newbie and could use your opinion how best to use C::B.

My initial interest is to use C::B to build my C++ app for both Linux and Windows platforms.  I will likely extend to other platforms as well later but for now I am just focusing on Linux and Windows.

I have a few example classes which I would like to compile/link into a shared library, and I have an example console application to test this shared library.

I have a Linux (Fedora) desktop, and a Windows (Vista) desktop.  I've installed C::B on both workstations.

Should I create my project(s) on a USB flash drive and carry it from Linux to Windows as necessary?  Or should create separate projects on each (and synchronize them somehow)?  Or should I create my project(s) on a shared drive?

Some of my pure virtual classes will obviously be used on both platforms (class widget), while other classes (e.g. class linuxWidget, class windowsWidget) will be used only on one or the other.

Any practical suggestions on the best approach?
Title: Re: noob developing one app for two platforms
Post by: zabzonk on November 27, 2011, 07:27:10 pm
Not  CB related, and so off-topic here - you want a site like http://programmers.stackexchange.com. I would say one thing though - before you do anything else, install some kind of version control.
Title: Re: noob developing one app for two platforms
Post by: Alpha on November 27, 2011, 08:15:13 pm
Also consider cross compiling (http://wiki.codeblocks.org/index.php?title=Code::Blocks_and_Cross_Compilers) (the page is a little outdated, but it should still be useful).
Title: Re: noob developing one app for two platforms
Post by: Jenna on November 27, 2011, 09:23:20 pm
Also consider cross compiling (http://wiki.codeblocks.org/index.php?title=Code::Blocks_and_Cross_Compilers) (the page is a little outdated, but it should still be useful).
and this one: http://wiki.codeblocks.org/index.php?title=Cross_Compiling_wxWidgets_Applications_on_Linux (http://wiki.codeblocks.org/index.php?title=Cross_Compiling_wxWidgets_Applications_on_Linux) , iT#s writtem for wxWidgets, but can also be useful for cross-compiling on linux for windows in general.