Menu

gdb not finding source files

2003-01-27
2012-09-26
  • Nobody/Anonymous

    my source files are not all in the same directory as my project file. When I run gdb from within Dev-CPP, I get this message (among others):

    "no source file named GraphicsComponent.cpp"

    How can I fix this without having to redo my directory structure to please Dev-CPP?

     
    • Patrick Ogay

      Patrick Ogay - 2003-01-29

      I also have the sources also  in another directory that the project file, I guess that's not the problem.

      Don't know, when you debug a program e.g. on another computer.
      But if you compile it with -g3 before, it should debug.

      Patrick

      P.S.
      Sometimes GDB seems not to know the breakpoints.
      A frequent error is:
      when the code is changed  without compiling, often the breakpoints are ignored afterwards.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.