Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Using Code::Blocks / Re: Undefined reference
« Last post by stahta01 on Today at 01:49:29 am »
Got it.
Thank you.

(its strange then, that it builds fine when run from command line and fails through code::blocks, must dig in more)

Post the external command line that works.
And, post the build log from CB that fails.

Tim S.

2
Using Code::Blocks / Re: Undefined reference
« Last post by jury on Yesterday at 06:25:02 am »
Got it.
Thank you.

(its strange then, that it builds fine when run from command line and fails through code::blocks, must dig in more)
3
Using Code::Blocks / Re: Undefined reference
« Last post by BlueHazzard on May 07, 2021, 09:45:28 pm »
If you create a project from cmake, then this project is a so called "makefile project". With this type of project the codeblocks build process is circumvented and the cmake build process is used. For this all Settings in the Build options are ignored, because the cmake file is the build reference. If you have to add a library or source file ecc, or anything related to the build process, you have to modify your (c)make file

So you probably have to add some library to your cmake file

[edit:] stahta01 was faster....
4
Using Code::Blocks / Re: Undefined reference
« Last post by stahta01 on May 07, 2021, 09:44:46 pm »
You are using an CB custom makefile project because of your selection of "CodeBlocks - Unix Makefiles"; therefore you need to edit the makefile to change the build settings used by the makefile!

Tim S.
5
Using Code::Blocks / Undefined reference
« Last post by jury on May 07, 2021, 08:45:21 pm »
I have created Code::Blocks project from cmake (with -G "CodeBlocks - Unix Makefiles")
It compiles, but when linking I get undefined reference. Where do I add libraries for this project?
When searching for help I found this:
https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_My_build_fails_with_multiple_undefined_reference_errors.3F
saying "Most of the time it is because the required library is not linked with your project. Go to Project->Build options...->Linker settings (tab) and add the required library or libraries"
But I do not have any Linker settings tab there. All I have is "Pre/post build steps", "Custom variables" and "Make"commands. I think I have went through all the possible menu entries, but I can not find any project linker settings.
What am I missing?

(yes, I have seen the same title topic from yesterday, but the advice there is exactly the same as in the link above: go to project -> build options and then linker settings tab)

Code::Blocks 20.3, PCLinuxOS
This project compiles and builds fine in command line.
6
Plugins development / Re: FileManager Plugin wx3.1.x (64 bit) upgrade by omlk
« Last post by Commaster on May 07, 2021, 05:21:02 pm »
(Offtopic) Also it's patch, not path: https://en.wikipedia.org/wiki/Patch_(computing)
7
Plugins development / Re: FileManager Plugin wx3.1.x (64 bit) upgrade by omlk
« Last post by oBFusCATed on May 07, 2021, 04:39:06 pm »
I don't understand what's wrong with the patch yet? The patch should be set to r12295.
What do you mean by "set to r12295". The idea is to update to the latest trunk commit, make your changes and then create the patch.
If you're more comfortable with git you can use https://github.com/obfuscated/codeblocks_sf

What's wrong with goto?
https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.pdf
8
Plugins development / Re: FileManager Plugin wx3.1.x (64 bit) upgrade by omlk
« Last post by omlk on May 07, 2021, 01:21:52 pm »
  • I don't understand what's wrong with the patch yet? The patch should be set to r12295.
  • What's wrong with goto?
I attached new patch include fixes from r12319, r12318
9
Plugins development / Re: FileManager Plugin wx3.1.x (64 bit) upgrade by omlk
« Last post by oBFusCATed on May 07, 2021, 12:05:01 pm »
Interesting:
1. wild reformatting changes for no apparent reason, uses tabs instead of spaces
2. switches to c++20, but still uses goto
3. fails to apply cleanly on latest trunk/master:
Code
> patch -p0 < /tmp/omlk_12295_FileManager_rev0.3.path
patching file src/plugins/contrib/FileManager/FileExplorer.cpp
Hunk #34 FAILED at 762.
Hunk #52 succeeded at 1295 with fuzz 2.
Hunk #53 succeeded at 1305 (offset 1 line).
Hunk #54 FAILED at 1329.
Hunk #55 succeeded at 1366 (offset 3 lines).
Hunk #56 succeeded at 1385 (offset 3 lines).
Hunk #57 FAILED at 1395.
Hunk #58 FAILED at 1512.
4 out of 58 hunks FAILED -- saving rejects to file src/plugins/contrib/FileManager/FileExplorer.cpp.rej
patching file src/plugins/contrib/FileManager/FileExplorer.h
patching file src/plugins/contrib/FileManager/FileManager_wx31_64.cbp
patching file src/plugins/contrib/FileManager/se_globals.cpp
patching file src/plugins/contrib/FileManager/se_globals.h

This would be rough...
10
Plugins development / Re: FileManager Plugin wx3.1.x (64 bit) upgrade by omlk
« Last post by omlk on May 07, 2021, 09:26:34 am »
Code
$ svn diff -x '-b --ignore-eol-style' ./src/plugins/contrib/FileManager/ > omlk_12295_FileManager_rev0.3.path
File attached to this post.
Pages: [1] 2 3 4 5 6 ... 10