Bug #18969 2013-04-13 10:24

kmdv

Just added .cpp file does not take into account search paths

A .cpp file which is ready to be compiled and is added to the project cannot be immediately compiled, because search paths are not applied. After the open file is added, it needs to be reopen.

Steps to reproduce:

1. Get a compilable .cpp file (e.g., from a back-up). Let's call it "X.cpp".

2. Open project.

3. Open X.cpp in the Code::Blocks editor.

4. Go to Project's Management file tree, RMB click on the root directory and add X.cpp.

5. For X.cpp, go to Build->Compile current file

Build will fail, because project's search paths will not be applied to the file. After closing X.cpp's tab and then reopening it, build succeeds.

rev 8629, 32-bit

Category
Application::WrongBehaviour
Group
Platform:Windows
Status
Open
Close date
 
Assigned to