Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Meaning of "src/"



  • During debugging, is happening something that I cannot explain.

    Imagine we have the file abcd.cpp, in this directory me/abcd.cpp. In this file I have put some breakpoints. During debugging, the debugger gets into this file: src/abcd.cpp, and even though this file does not have any breakpoints (it says: "Warning: This file is outside the project directory"), the debuggers stops in the same lines that I put the breakpoints in me/abcd.cpp.

    Can someone explain to me why it is happening? And what exactly is the meaning and the purpose of "src/"? Who copied-pasted the file abcd.cpp from me/ to src/?

    Thanks in advance.


  • Lifetime Qt Champion

    @Konstantinos Does src/abcd.cpp file actually exist in the file system? Maybe it is just shown wrong? Can you show the PRO file?



  • @jsulm said:

    @Konstantinos Does src/abcd.cpp file actually exist in the file system? Maybe it is just shown wrong? Can you show the PRO file?

    Hi jsulm. The file exists, it is in a completely different directory than this one that I work in, and this directory - file does not exist in .pro.

    Even the LIBS += "C:/Users/... has a different directory. Maybe a .dll file, has other directories inside?

    I cannot understand what is happening.

    Thanks.


  • Lifetime Qt Champion

    @Konstantinos Then remove the wrong file and try again


Log in to reply