Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] outputType of tool is .c file

Hi Delicia,


To avoid building the generated .c files with your compiler you should do the following:


1.       The generated .c files should be stored within the build output directory

2.       In your definition of the tool that generates the .c files the outputType that represents .c files should contain the buildVariable that differs from the buildVariable attribute of the inputType of your compiler that accepts .c files. This should prevent the generated .c files from being used by your compiler tool.



From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Delicia
Sent: Thursday, September 07, 2006 12:24 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] outputType of tool is .c file




  One of the tools in my toolchain generates a .c file as output.

This .c file is then used in sources (using #include...)


Since the file has a .c extension, the 'C compiler' tool goes ahead & compiles this to a .o

This step should not happen in my case.

I end up getting link time errors due to this.


Is there any way I can stop the C compiler from building this output .c file?




Back to the top