rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
Multiple compilation unit project linker error |
Posted: Sat Oct 31, 2015 10:23 am |
|
|
Hi,
In my project direcrory I have one main.c file.
In ..\..\Drivers I have project.c, project.h files.
I have added project.c to my project.
I added ..\..\Drivers as include directory for my project.
I specified all the output files to be placed at .\outputs.
When I run Build I get main.o and project.o in the .\outputs.
But the [spam] linker reports the error:
Quote: | file ..\..\Drivers\project.o can not be opened |
Why the smart linker searches the object file in the Driver directory (I explicitly opted that outputs will be at different directory)?
Thank you. _________________ A person who never made a mistake never tried anything new. |
|