Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » 2019-03 (4.11.0) source file not found using cygwin(When building the source file cannot be found using make project)
2019-03 (4.11.0) source file not found using cygwin [message #1805486] Tue, 16 April 2019 07:23 Go to next message
gary mazz is currently offline gary mazzFriend
Messages: 7
Registered: July 2009
Junior Member
I need a bit of help... and a fix/work around.

I'm attempting to create and build a default make project using the cygwin tool chain.

I get error on build:
Building in: C:\Users\xxxx\eclipse-workspace\test\build\make.debug.win32.x86_64
make -f ..\..\Makefile
g++.exe -c -g -o test.o /cygdrive/c/Users/xxxx/eclipse-workspace/test/test.cpp
g++.exe: error: /cygdrive/c/Users/xxxx/eclipse-workspace/test/test.cpp: No such file or directory
g++.exe: fatal error: no input files
compilation terminated.
make: *** [..\..\Makefile:19: test.o] Error 1
Build complete (1 errors, 0 warnings): C:\Users\xxxx\eclipse-workspace\test\build\make.debug.win32.x86_64


I've tried the old work around:
Window->Preferences->C/C++->Debug->Common source Lookup Path and add a path mapping that maps /cygdrive/<drive letter> to <drive letter>\:.
For example, > /cygdrive/c -> C\:.

That doesn't work..

[Updated on: Tue, 16 April 2019 08:30]

Report message to a moderator

Re: 2019-03 (4.11.0) source file not found using cygwin [message #1805536 is a reply to message #1805486] Tue, 16 April 2019 23:35 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Quote:

g++.exe: error: /cygdrive/c/Users/xxxx/eclipse-workspace/test/test.cpp: No such file or directory


Rather self-explanatory.

Window->Preferences->C/C++->Debug->Common source Lookup Path
You are getting the error from the compiler and not the debugger so debug preferences are irrelevant.

Are you running Eclipse in a cygwin terminal?
"Building in: C:\Users\xxxx\eclipse-workspace\test\build\make.debug.win32.x86_64" suggests otherwise.
cygwin maps the Windows C: drive to /cygdrive/c
Been a while since I've used cygwin but IIRC that mapping only works from a cygwin terminal.

Re: 2019-03 (4.11.0) source file not found using cygwin [message #1805616 is a reply to message #1805536] Thu, 18 April 2019 22:04 Go to previous message
gary mazz is currently offline gary mazzFriend
Messages: 7
Registered: July 2009
Junior Member
This is quite embarrassing to say in a public forum...

The problem was a shadow copy of gnu tool chain was installed without notification with the Strawberry version of python for windows. Removing Strawberry's stuff from the path fixes the problem.

Previous Topic:installing CDT in eclipse java ide 2019-3
Next Topic:Eclipse CDT hangs on Mac OS
Goto Forum:
  


Current Time: Tue Sep 24 00:22:01 GMT 2024

Powered by FUDForum. Page generated in 0.04537 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top