This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-J7200: is it have to add the system include when a c file include a system header file ?

Part Number: PROCESSOR-SDK-J7200

I use C:/ti-processor-sdk-rtos-j7200-evm-07_03_00_07/ti-cgt-arm_20.2.0.LTS/bin/armcl.exe  to complier a C file ,

 

This c file include a stdint.h   

 

The stdint.h is in C:/ti-processor-sdk-rtos-j7200-evm-07_03_00_07/ti-cgt-arm_20.2.0.LTS/include

 

In line 6 , it code as  #include <stdint.h>

 

I use the follow command but  failed,

 

C:/ti-processor-sdk-rtos-j7200-evm-07_03_00_07/ti-cgt-arm_20.2.0.LTS/bin/armcl.exe -ms -c -mv7R5 --float_support=vfpv3d16 --abi=eabi --endian=little -o3 -k -g --display_error_number --diag_warning=225 --code_state=32 --fp_mode=strict -eo.o -ec.c --symdebug:dwarf --embed_inline_assembly -D_DEBUG_=1 -DBUILD_MCU2_1 -DBUILD_MCU -DAUTOSAR_421 -DSOC_J7200 -IBsw/Os/Implementation -Ilib\ti\PDK\include\ -I_gen/headers -ppa -ppd=_gen/depends/SchM_Dio.mak -fc bsw/mcal/bsw_stubs/rte/src/SchM_Dio.c -fs=_gen/objects -fr=_gen/objects

"lib\ti\PDK\include\ti/osal/HwiP.h", line 65: fatal error #1965: cannot open source file

"stdint.h"

1 catastrophic error detected in the compilation of "Bsw/Mcal/Bsw_Stubs/Rte/src/SchM_Dio.c".

Compilation terminated.

 

If I add a optional   -IC:/ti-processor-sdk-rtos-j7200-evm-07_03_00_07/ti-cgt-arm_20.2.0.LTS/include   ,

Then compiler is successfully.

But this  is a bad idea,  if the  compliers location is changed , the command should be change,

 

 

As far as I know ,  If the code use  #include <…>  ,  the complier search the system include path first,

 

Is there any special about this complier ?

What is the system include path for this compiler ? 

How can I complier this c file successfully without add the system include file ?