Author Topic: Problem to compile  (Read 5615 times)

Offline Pimptech

  • Single posting newcomer
  • *
  • Posts: 2
Problem to compile
« on: October 07, 2012, 09:26:27 am »
Hello guys!

I have a little problem to compile my project in C.
I already have the MingW installed and configured on my C::B...

But when i press CTRL+SHIFT+F9...

On "Build Log" tab shows...
"Nothing to be done."

Just it.. i've already checked the Toolchain configuration, but nothing works.
by the way, I compiled it by the CMD.exe with gcc, but i want to compile directly on C::B.

Any ideas ?

[]'s

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Problem to compile
« Reply #2 on: October 07, 2012, 11:54:02 am »
Any ideas ?
Well if you really compiled it before on the command line and the target is up-to-date therefore, C::B is telling you the truth: Nothing to be done.

Try to re-build your project if you really want to do a build from scratch.

For an explanation: C::B tries to minimise the build effort by checking the file's date stamps before compilation. If an application is newer than all source files that belong to this application the build is omitted. This is by design and very helpful for large scale projects. To overcome this feature, you have to use re-build which forces C::B to ignore the date stamps of the files.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pimptech

  • Single posting newcomer
  • *
  • Posts: 2
Re: Problem to compile
« Reply #3 on: October 07, 2012, 03:12:50 pm »
Any ideas ?
Well if you really compiled it before on the command line and the target is up-to-date therefore, C::B is telling you the truth: Nothing to be done.

Try to re-build your project if you really want to do a build from scratch.

For an explanation: C::B tries to minimise the build effort by checking the file's date stamps before compilation. If an application is newer than all source files that belong to this application the build is omitted. This is by design and very helpful for large scale projects. To overcome this feature, you have to use re-build which forces C::B to ignore the date stamps of the files.

Exactly that.. the default GNU compiler was using mingw-gcc what forces the use of libgcc.dll (it isn't this name, but is something like that).. so i've changed the ming-gcc by gcc now it's doing compiling and running without any problems with DLL reference.

Thanks MortenMacFly!