User forums > Help
Cross-platform projects and targets
Commodore64:
Hi,
I'm currently writing a cross-platform application with C::B SVN HEAD; I would like to manage it with only one C::B project with many targets. Some targets make sense only in one OS (for example, a target using Visual C++ makes sense only in Windows), other targets can be used in both Linux and Windows.
The problem is that Code::Blocks doesn't recognize compilers used in some targets (in Linux, it doesn't recognize Visual C++) and it messes up those target in the project file (it reverts them to use the standard compiler, i.e. GCC).
Am I missing something? Is there a way to avoid this problem?
Thanks,
Luca
mandrav:
Unfortunately, currently there's no way to avoid this.
Commodore64:
Well, I think I'll open a feature request :wink:
Thank you!
Luca
Game_Ender:
--- Quote from: mandrav on July 11, 2006, 01:30:12 pm ---Unfortunately, currently there's no way to avoid this.
--- End quote ---
I hate to argue with the guy who made the IDE, but cant you accomplish this with scripts? You can attach a script to the target and script can check platform and then adjust project options accordingly. From a very quick look at the script interface this seems possible.
On another note, it doesn't seem to hard to be able to add a platform options to each target. Something like "compile under", and then a wxChoice box with Linux, Windows, All (and soon Mac).
MortenMacFly:
--- Quote from: Game_Ender on July 11, 2006, 03:56:09 pm ---I hate to argue with the guy who made the IDE, but cant you accomplish this with scripts?
--- End quote ---
Good one! This should in fact be possible.
mandrav: Another PRO for scripting... ;-)
Navigation
[0] Message Index
[#] Next page
Go to full version