User forums > Using Code::Blocks
Default search directory
sodev:
No, the tutorials are right, DO NOT copy any custom files into these default compiler directories unless you are looking for BIG trouble.
stahta01:
--- Quote from: J_Will on October 16, 2023, 03:40:41 pm ---Ok thank you. Thi sis due to the compiler. That means many tutorials are wrong :)
--- End quote ---
The tutorials that tell you to copy files into the compiler toolchain locations are likely written by newbies or idiots, sometimes both.
Unless the directions are on how to create a compiler toolchain then copying files into the toolchain folders are almost always a bad idea!
Tim S.
J_Will:
Wow don't be so vindicative both of you :)
No trouble if you copy custom files into include and lib folders of the compiler. We just have to know where the compiler is looking for those files during compilation.
But you are right, it's not very clean to do like that.
In fact I noticed that Code::blocks is delivred with a very old version of GCC (GCC8.1 !!). And with this version of GCC, we need to precise the include and lib path in the search directory otherwise it doesn't work (so the tutorials are right). But with a more recent version of GCC (I use GCC10.3) it is not necessary.
Thank you for all your replies.
Navigation
[0] Message Index
[*] Previous page
Go to full version