Multi-target compilation (64bit and 32bit)

Multi-target compilation (64bit and 32bit)

Hello,

I wanted to find out if it's possible in Eclipse/CDT to create a project that would create executables both in 32bit and 64bit format from the same project?

As far as I can tell from the .cproject file, it references the 64bit toolchain directly and there is no way to use them both, is there any work around?

Thanks in advance!

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

While I am not on Eclipse right now, you may be able to create a non-cproject (similar to Windows Visual Studio Solution) that contains your two .cprojects. IOW, when you build the outer layer (non-cproject), it builds both versions.

Jim Dempsey

www.quickthreadprogramming.com

You are talking about Working Sets (if I understood correctly). While it's an option, it's far from ideal, because I'll have to maintain two project files from the same set of sources and will have to update them both each time include paths change, etc. What I wanted is to setup ONE project that can target (using build configurations maybe) two different platforms.

Thanks again,

Eli

>>...What I wanted is to setup ONE project that can target (using build configurations maybe) two different platforms.

For example, I'm using two MinGW C++ compilers from the same project. The only thing I do is a call to MS Junction utility to remap a junction target directory.

Leave a Comment

Please sign in to add a comment. Not a member? Join today