I have tried adding the delay.h and delay.asm files to my project but when i try to include delay.h and use the commands and build my project I receive the error "cannot include source file "delay.h"; file not found" I've tried following the steps from the followng page
but I am still having no luck. Can someone help me?
Mikey the D
If you do not put the files in default root project directory you can, in project settings,
add search path to compiler and linker to inform them of location.
I had to put the files into the project file and not in the original folder that the Project >> Add File directed me to.
Thanks everyone I appreciate the help.
Bob, I understand the add file method, but thought one can inform the
linker with an additional search path in settings to pick up anything in that
path. I tried that, does not seem to work ? Like in a case where one has to
add a lot of files, tedious to do it using "add".
The linker does not work with your sources, but the debugger does. The project file has got the information which files (including path) participate on the project. The fact that a file resides in a folder that is declared as to be searched for files does not work for every step of the complete code-generation.
I would suggest to trust in the Workspace Explorer's listing which shows all the project files known and to add all new files exactly at this place. Problems can arise when the file lies not within the project path (or even on a network) since the linker has to be informed where the output file of the compile-step lies. That is the reason wy I usually copy those files althoug this is not very helpful for building up a common codebase.