Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: CCS build error : could not find source file " include/hw_types.h"

$
0
0

[quote user="siauhwa ong"]

project folder :

C:\StellarisWare\boards\MyLaunchPadBoard\Lab9

and I can find the hw_types.h include file on : 

C:\StellarisWare\inc

I have included the #include "inc/hw_types.h" on my code

[/quote]

In general, in order for the compiler to "find" header files, the path to it must be specified within the compiler's include option --include_path (under Project Properties->Build->Compiler->Include Options).

Since you have #include "inc/hw_types.h" in your code, the compiler include path must point to C:\StellarisWare in your case. Now you say that the project is in C:\StellarisWare\boards\MyLaunchPadBoard\Lab9, which means the --include_path should contain "${PROJECT_ROOT}/../../.." so that it points to C:\StellarisWare. What you have specified is "${PROJECT_ROOT}/../../../.." which is one level too high.


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>