User forums > Using Code::Blocks

noob developing one app for two platforms

(1/1)

efair:
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?

zabzonk:
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.

Alpha:
Also consider cross compiling (the page is a little outdated, but it should still be useful).

Jenna:

--- Quote from: Alpha on November 27, 2011, 08:15:13 pm ---Also consider cross compiling (the page is a little outdated, but it should still be useful).

--- End quote ---
and this one: 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.

Navigation

[0] Message Index

Go to full version