Author Topic: [GDB] No source file named main.cpp.  (Read 8775 times)

Offline Quetz

  • Multiple posting newcomer
  • *
  • Posts: 19
    • http://
[GDB] No source file named main.cpp.
« on: October 08, 2005, 07:25:04 pm »
Hello!

I've download and installed CodeBlocks 1.0 RC 1-1 (without GCC).
I downloaded ale the necessary file direct from Mingw.org and after manual installation everything is OK.
But...I;ve got problem with a debugger. I get this:

Selecting target: default
Compiling: done
Starting debugger: done
Adding source dir: D:\pwr\Semestr_2\Cpp\grafy\
Adding file: grafy.exe
No source file named main.cpp.
error

Of course, missing (for GDB) file is there in  that catalog. Moreover, this situation occurs to every other project I've made in CB last year.
What should I do, please help!

Thank you,
Jakub Lambrych


Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: [GDB] No source file named main.cpp.
« Reply #1 on: October 09, 2005, 06:16:15 am »
Did you enable the "generate debugging symbols" in the compiler options?

Offline Quetz

  • Multiple posting newcomer
  • *
  • Posts: 19
    • http://
Re: [GDB] No source file named main.cpp.
« Reply #2 on: October 09, 2005, 01:16:02 pm »
Thx!

Yes, now it works.