|Cross Compilation [message #182564]
||Fri, 19 January 2007 15:42
Originally posted by: laurent.malvert.gmail.com|
I'd like to know if anyone has any idea or clue how to do this...
I have a project that is aimed at developing two implementations of a
system for different platforms.
I divied my projet like this:
But of course, when I compile it tries to compile with all the source
files and I get a redefinition of whatever is in win/ because it's also
defined in unix/.
I used compilation variables to be able to tell the compiler which include
to use , but it doesn't prevent it of trying to compile both .cpp
 you now, something like with
<RootNameSpace/common/SubNameSpace/Class.h> containign something like the
# ifdef WIN32
# include <RootNameSpace/win/SubNameSpace/Class.h>
# include <RootNameSpace/unix/SubNameSpace/Class.h>
I am using a Managed Make project.
I figured I could try to eclude directories from the compilation but I
could not manage to do that.
Or I could try to create 3 separate projects and have
MyProject.win and Myproject.unix to both use the MyProject.common as a
Is that the way to go ?
how would you do something like that ?
Thank you very much in advance.
Powered by FUDForum
. Page generated in 0.03465 seconds