Author Topic: what happens when we press build (more extensive and readable/clear build log)  (Read 4808 times)

Offline kakas

  • Multiple posting newcomer
  • *
  • Posts: 25
  • potatoes are tasty(not the raw ones)
I am trying to learn more about the compiler and linker, and the build process, so that I could maybe make build script(like .bat file) for different environments. And as a test I am building one of my old projects. But I am having trouble with linking. I feel like it would help me immensely to know how code blocks did it.

I have read one of the wiki's. It didn't really go in detail. (I am mostly interested in the preprocessing phase and the build script parts)
https://wiki.codeblocks.org/index.php/The_build_process_of_Code::Blocks#Preprocessing_phase

I think my problem will be solved by the question, what happens when we press build, how does code blocks goes about instructing the compiler and linker? or maybe how do I get un-cluttered build logs?

(I am sorry if this question doesn't belong here. I've tried asking in different places but they mostly just aske me to use cmake or some buildsystem to build the project. I don't really want to learn new language. g++ arguments are just fine)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Look at the "build log" ignore the "build messages"
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kakas

  • Multiple posting newcomer
  • *
  • Posts: 25
  • potatoes are tasty(not the raw ones)
solved. I couldn't find a way to make the build log more "readable". But this blog/page on linkers was really helpful https://www.lurklurk.org/linkers/linkers.html (not related to code blocks).

I also found it super cool that .cbp file could be used as a build script(a very readable one) and how it can be used to built a project. really cool stuff.
(Idk I think I need to quite playing around and learn established build system someday).

Anyway, it was a fun side journey. thanks for the replies.