I'm trying to compile a code in VS2008, but I'm getting the following error:
Error 21 fatal error LNK1104: cannot open file 'C:\code\prototypes\demographics.obj'
This is the only error I'm getting, and it is pretty weird, since the folder 'prototypes' is "2 levels upwards" from the solution dir (../../) and I believe this obj file should be generated during the build.
I don't know what kind of project property is messed up. Could you help me fix it?
Does the file 'C:\code\prototypes\demographics.obj' exist?
If not then why?
Do you"believe this obj file should be generated during the build" or you are 100% sure it is generated? Search your solution for demographics.cpp or whatever other extension...
The file demographics.obj does not exist.
There is no demographics.cpp in my solution (I even searched in the other projects), and I don't have a class named Demographics either.
The closest I have is the name of the solution - 'Demographic' (without the s)...
Found the error...
there was one of the paths in the project referencing a folder named "demographics new version". Once I've removed the spaces, things have started to work.
I believe VS2008 doesn't like folders with spaces on the names...