AnsweredAssumed Answered

Question on source directories includes

Question asked by Stephane REY on Nov 27, 2012

Hello there,

I'm familiar with Codewarrior 6.3 and I'm starting with CW10.2

I want to organize my sources files in subdirectories. Here is a simplified example

 

source\

main.c

init.c

init.h

tdef.h

\HAL\

\ICS\

ics.c

ics.h

\ADC\

adc.c

adc.h

...

\HIL\

...

\service\

...

\Application

...


I need that any file can include any include file from any subdirectory

Example :init.c includes ics.h, adc.h, and so on as well as ics.c includes tdef.h

 

If I do nothing, includes files are not seen from an other directory

If I add for each directory its workspace location in Properties\HCS08 Compiler\input, then it sounds better but still have errors....

 

My very simple example project is attached

 

Any help appreciated to understand how these subdirectory organization may work !

 

Regards

Stephane

Original Attachment has been moved to: UniPLL_RREX_CW10_v100.zip

Outcomes