Recent Posts

Pages: 1 2 3 4 [5] 6 7 8 9 10
41
Announcements / Re: Does Code block support GitHub integration plugins?
« Last post by MichaelAgarkov on September 15, 2023, 01:23:59 pm »
yr, If I understand correctly you're asking if Code::Blocks has integration with Git like VSCode? In that case: no, but there's a plugin called GitBlocks available.
42
Help / Re: CodeBlocks can't "build and Run" the the "Hello world"
« Last post by MichaelAgarkov on September 15, 2023, 01:15:26 pm »
It looks like some C::B files are missing, try reinstalling. I never used macOS, so I can't help further than that.
43
General (but related to Code::Blocks) / Re: Using the screenshots in books
« Last post by MichaelAgarkov on September 15, 2023, 01:11:49 pm »
Code::Blocks is open-source, published under the GNU GPL, so you are more than allowed to use screenshots of it in publication, as far as I understand.
44
Nightly builds / Re: The 01 September 2023 build (13344) is out.
« Last post by BeverlyManfredi on September 15, 2023, 10:16:26 am »
I will try it and if I face any issue, I will let you know.
45
Help / Re: Building project on command line with dependencies
« Last post by stahta01 on September 15, 2023, 12:11:08 am »
So, you decided not to try building the workspace. Per wiki it should work.

https://wiki.codeblocks.org/index.php/Code::Blocks_command_line_arguments

Tim S.
46
Help / Re: Building project on command line with dependencies
« Last post by rgleim on September 14, 2023, 11:40:49 pm »
Looks like what I'm gathering is that you can't build a single project on the command line and have it figure out the dependent projects, and then build those.  Workspace builds work because it has knowledge of all other projects. Command line looks like you need to specify each individual project, in the order you want, to create the final executable.
47
Help / Re: Building project on command line with dependencies
« Last post by rgleim on September 14, 2023, 11:32:36 pm »
I found the attached on the code::blocks wiki, but after setting up the external dependencies in the project, it's still not working on the command line.

Building the workspace works, but that doesn't work on the build machine because we don't save/have a workspace in the build system.
48
Help / Re: Building project on command line with dependencies
« Last post by stahta01 on September 14, 2023, 11:06:51 pm »
External Dependencies attached.  Not really sure how to use this.  It works as I expect when I build inside the IDE.  Why would it be different on the command line?

If that is blank then you are using workspace depends; if you are using that then you should try building the workspace instead of the CB project.
Edit: I have no idea if that is possible.

Tim S.
49
Help / Re: Building project on command line with dependencies
« Last post by rgleim on September 14, 2023, 10:45:42 pm »
Correct. Everything is relative paths based on the current dir. I tried including external dependencies as well, but still no good.

Could someone setup a simple test project where there's a lib, built in code blocks, and a project that has a dependency on it. Then see it "clean" and "build" both projects in the IDE, when just calling on the main project, and then try to repeat on the command line?
50
Help / Re: Building project on command line with dependencies
« Last post by cacb on September 14, 2023, 10:35:57 pm »
Looks like relative paths for include & libraries. Then you must have same current dir in both cases.
Pages: 1 2 3 4 [5] 6 7 8 9 10