Author Topic: Run doesn't rebuild  (Read 3027 times)


  • Guest
Run doesn't rebuild
« on: June 09, 2013, 05:33:04 am »
Hi there,

When I click run, a new binary is not built, I have to manually rebuild or clean first. However, when I do this, everything does compile fine.

Note: I *have* Googled this problem, I found a couple of other threads here about it (one pointing to the other:, but the issue there seemed to be incorrect build settings. However, my build settings seem OK, since the project does build perfectly fine (I just have to manually ask Code::Blocks to do it for me).

Also, does Code::Blocks have any sort of compile-as-you-type? I've searched everywhere for an option, and internet searched, but I must be using the wrong term/name for it, since I only find ten thousand people who don't know what compiler/linker arguments to use...

I would greatly appreciate any help anyone has to offer. Thanks!

Extra compiler options:
`pkg-config opencv --cflags`

Extra linker options:
`pkg-config opencv --libs`

Build output:

-------------- Clean: Debug in RS (compiler: GNU GCC Compiler)---------------

Cleaned "RS - Debug"

-------------- Build: Debug in RS (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions  -g -I/usr/local/include/opencv -I/usr/local/include    -std=gnu++11     -c /home/will/code/RS/main.cpp -o obj/Debug/main.o
g++ -Wall -fexceptions  -g -I/usr/local/include/opencv -I/usr/local/include    -std=gnu++11     -c /home/will/code/RS/src/backgrounddetector.cpp -o obj/Debug/src/backgrounddetector.o
g++ -Wall -fexceptions  -g -I/usr/local/include/opencv -I/usr/local/include    -std=gnu++11     -c /home/will/code/RS/src/calibrator.cpp -o obj/Debug/src/calibrator.o
g++ -Wall -fexceptions  -g -I/usr/local/include/opencv -I/usr/local/include    -std=gnu++11     -c /home/will/code/RS/src/steerablefilter.cpp -o obj/Debug/src/steerablefilter.o
g++  -o bin/Debug/RS obj/Debug/main.o obj/Debug/src/backgrounddetector.o obj/Debug/src/calibrator.o obj/Debug/src/steerablefilter.o   /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/    -lboost_thread -lpthread 
Output size is 777.14 KB
Process terminated with status 0 (0 minutes, 3 seconds)
0 errors, 0 warnings (0 minutes, 3 seconds)

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Run doesn't rebuild
« Reply #1 on: June 09, 2013, 12:12:25 pm »
Why should it rebuild your application, if you click run ?
Did you try build and run ?

No compile while type available, C::B is an IDE that supports many compileres, but not a compiler itself.