Link to home
Start Free TrialLog in
Avatar of PingPhotonics
PingPhotonicsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

fatal error C1083: Cannot open source file: '..\..\..\MyInclude\Source\theUSB.cpp': No such file or directory

I'm developing a C++ (MFC) solution in visual Studio 2008 that produces as output an activeX control. Its a legacy project that I think was created using an earlier version of Visual Studio (2003?)


The compilation error I get is;

fatal error C1083: Cannot open source file: '..\..\..\MyInclude\Source\theUSB.cpp': No such file or directory      c1xx      


This error is occurring in the file "c1xx". There is no file c1xx in my project. However from googling  I understand this represents the compiler?

Ive done a search in my project (there is only the one project in the solution) for the string "Source\theUSB.cpp" and it does not exist. Note the file "the USB.cpp" does exist. I think all I need to do is remove the path and change it to simply the USB.cpp and the project should compile ok.

But the question is where is the compiler finding  the path '..\..\..\MyInclude\Source\theUSB.cpp' ?   Its not in the source code anywhere and I can't see it in any of the options that allow you to set additional directories. ie. includes and libraries.

Has anyone had a similar problem?
ASKER CERTIFIED SOLUTION
Avatar of HooKooDooKu
HooKooDooKu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PingPhotonics

ASKER

Thanks, that fixed it. When I opened the project file in a text editor I saw all the relative paths, I just removed the path since I had loaded the files into the solution.