Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Adding Multiple Compilers

<< < (3/4) > >>

hd:
Hi,


--- Quote from: puneet_m on October 26, 2007, 08:36:03 pm ---I want to add multiple compilers to same target, check the example below:

--- End quote ---

Not multiple compiler for the same target, but you may add multiple target using different compiler for each. (Maybe you already know this but..)

--
Regards,
Hakki Dogusan

thomas:

--- Quote from: hd on October 27, 2007, 10:37:38 pm ---Not multiple compiler for the same target, but you may add multiple target using different compiler for each. (Maybe you already know this but..)
--- End quote ---
Yes, this works, and this makes perfect sense.

huhlig:
Would it be possible to use multiple compilers in the same target for different file extensions or individual files. I am working on a mixture of C and D and need multiple compilers to accomplish this. The option seems to be available on the Files advanced tab but it never seems to 'stick'.

thomas:
No, although it accidentially works nevertheless if you use gcc (since gcc is not a compiler, but really a front-end to half a dozen compilers). One target, one compiler, it doesn't work differently.
What you can do is, use the C compiler in one target to compile, but not link. Then add the object files to the next target which uses the D compiler (or the other way around). Or, make a static library, which only requires you to link one file afterwards (instead of a dozen object files).

huhlig:
Any particular reason for this lack of functionality? I am curious, the only reason I can find seems to be "it doesn't make sense" which multiple people have refuted.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version