2017-12-14 11:17 AM
Seems like I am missing something about the .include statement. No matter what I try I always end up getting 'Error: can't open xxxx for reading: No such file or directory'
Is there something I have to set up in the project preferences or some kind of path to the file I need to specify? It does not even work when the include file is in the same directory as the source code.
Solved! Go to Solution.
2017-12-14 12:51 PM
Might want to review the command line to the assembler, how the source is pathed there, and if any include paths are handed over.
Source file might be './src/foo.s'
Not sufficiently familiar with AC6 but perhaps you can right click the file in the project tree and have the options show the path. Worst case seed a unique copy of the include file in several of the directories, including that of the project/workspace, and see which one gets pulled, and note that for future reference. Usually the base directory is determine by where the makefile or compiler is run from.
2017-12-14 12:51 PM
Might want to review the command line to the assembler, how the source is pathed there, and if any include paths are handed over.
Source file might be './src/foo.s'
Not sufficiently familiar with AC6 but perhaps you can right click the file in the project tree and have the options show the path. Worst case seed a unique copy of the include file in several of the directories, including that of the project/workspace, and see which one gets pulled, and note that for future reference. Usually the base directory is determine by where the makefile or compiler is run from.
2017-12-15 07:00 AM
Thanks! That was the right hint.
In Project/Properties there is a setting where you can add include paths for the assembler. I did add the standard include folder (not just the path of the project folder!) and dropped my file there, now it works.