No source file named main.cpp




















I don't see any errors in GDB traces. Hm, that is weird. OK, then try to add "Compilation directory". Axel Mueller wrote on Wed, 08 February Hm, that is weird. Thank you for your help, it works now. Somehow Default inclusion of project folder with its sub-folders didn't work. Sub-folders have some duplicated files which are not used in compilation, but it is definitely not the reason since I tried adding "Compilation directory" with sub-folders and it also works with no problems.

Thu, 09 May Jan Sebesta Messages: 1 Registered: May Another hint, why you can get message "No source file named yourname. Imagine, the project consists of many source files and only some of them are linked together into resulting executable file. If your yourname. Sun, 10 July Kulwant Bhambra Messages: 1 Registered: July HI I had encountered a similar problem with db.

I just deleted. Tue, 15 November Morten Kristiansen Messages: 1 Registered: November This can happen if you have both cygwin and mingw or some other variant. If gcc from cygwin is used to compile the source you'll have cygwin path in executable. Then, if the debugger is from mingw, gdb will not be able to interpret the cygwin path.

That solved the problem for me. Mon, 05 November I am trying to launch and debug remotely where my launch. I suggest to close this old issue from Feb because of missing user feedback. WebFreak closed this Mar 15, Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests. You signed in with another tab or window.

Reload to refresh your session. You signed out in another tab or window. Asked 2 years, 11 months ago. Active 2 years, 11 months ago. Viewed times. My project dir likes, -main. The gdb outputs the info as bellow, No source file named cfd. Make breakpoint pending on future shared library load? Can you confirm that your library has no debug info? Maybe I missed some steps. For debug info just -g — user Yes, I understand. But this would not affect the Debug process.

Show 4 more comments. Active Oldest Votes. I can't set breaks at cfd. The fix is to rebuild it with the -g flag. Employed Russian Employed Russian k 29 29 gold badges silver badges bronze badges. I know the differnce between compiling and linking process. Maybe my problem is I don't know how to set the shared liarary compiling in debug mode.



0コメント

  • 1000 / 1000