Author Topic: How to explicitly clear CodeBlocks' build instruction cache?  (Read 3990 times)

Offline DjogaRo

  • Single posting newcomer
  • *
  • Posts: 3
How to explicitly clear CodeBlocks' build instruction cache?
« on: February 11, 2021, 03:46:37 pm »
Hello there,

does anyone know, how to clear CB's build instruction cache explicitly?

I'm not new to programming, but new to getting that involved in the build process. I intend to make an application in CB that employs wxWidgets. For over a week I'm trying to configure the latter to be the way I want to use it and get CB to build it successfully.
Today I tried wxW 3.0.5 instead of 3.1.4. First I learned, that the older one defaults to gtk2, not 3, when I configure it with just --gtk. Then after reconfiguring with --gtk=3, I saw CB trying to use the gtk2-variant, which cannot be, since the wxW build is to be asked for compiler and linker parameters. ***************************************************. Sry, I'm in a bad place rigth now. I'd thought, I was getting dumber by the day - not being able to make sence of how my configurations of CB and wxW builds are (not) working together, while every now and then my collegues asked what's the hold-up.

I hope someone tells me, how to make sure, that CB reevaluates options like "`/mnt/int/data/micha/Documents/3rdParty/wxWidgets-3.0.5/buildgtk/wx-config --static --cflags`".

But for now, I need to fight the urge to destroy things.

Regards,
  Djoga'Ro

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to explicitly clear CodeBlocks' build instruction cache?
« Reply #1 on: February 11, 2021, 04:48:31 pm »
Restart C::B. This is the only way. :(
(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 DjogaRo

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to explicitly clear CodeBlocks' build instruction cache?
« Reply #2 on: February 11, 2021, 05:57:08 pm »
Invaluable information. Thank you very much.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: How to explicitly clear CodeBlocks' build instruction cache?
« Reply #3 on: February 12, 2021, 07:41:39 pm »
We should introduce a script command to clear the cache....

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to explicitly clear CodeBlocks' build instruction cache?
« Reply #4 on: February 13, 2021, 01:04:27 am »
Nope. We should clear the cache at the start of the build or switch to ninja...
(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!]