Recent Posts

Pages: 1 [2] 3 4 5 6 7 ... 10
11
Using Code::Blocks / Code completion always selecting its own first suggestion
« Last post by FrankPeelo on November 18, 2026, 04:37:19 pm »
Hi all

Something funny happening in Code::Blocks, is it some setting I can fix?

When I start typing an identifier, Code::Blocks pops up a menu of identifiers that I might be trying to type. I can click the one I want, or use down-arrow and press Enter.

But then it ignores whatever I selected and uses the first suggestion on the menu!

So for example, I start typing uint
A menu pops up with uint16_t, uint32_t, uint64_t and so on.
I go down to uint_fast32_t and press enter. Or, I click on uint_fast32_t with the mouse.
C::B completes the identifier I was typing as uint16_t
and NOT the uint_fast32_t that I selected.

I'm sure it was working before. I tried shutting down Code::Blocks and restarting it, but this had no effect AFAICS. Is there a setting to fix it, or a file that needs to be deleted or something?

I am using Ubuntu 22.04.5 LTS, and the Code::Blocks from the repositories. Help | About gives me this:

Code
Name                   : Code::Blocks
Version                : 25.03-r13644
SDK Version            : 2.25.0
Scintilla Version      : 3.7.5
Author                 : The Code::Blocks Team
E-mail                 : info@codeblocks.org
Website                : https://www.codeblocks.org
OS                     : Linux 6.8.0-136-generic x86_64
Scaling factor         : 1.000000
Detected scaling factor: 0.989583
Display PPI            : 96x95
Display count          : 1
Display 0              : XY=[0,0]; Size=[1920,1080]; Primary

wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.33.

Thanks

Frank


12
Nightly builds / Re: The 07 October 2026 build (14050) is out.
« Last post by Miguel Gimenez on November 17, 2026, 06:20:21 pm »
I use C::B with "real" Ubuntu 26.04 and it works OK; I do not use WSL, though.

How did you install the last nightly (using Xaviou's package or christo's AppImage)?

Start C::B in safe mode (run "codeblocks --safe-mode" in a console) and report the results here.
13
Nightly builds / Re: The 07 October 2026 build (14050) is out.
« Last post by ThierryD on November 17, 2026, 02:17:01 pm »
Hi,

Someone (in the world ...) has constated this behaviour of CB ?
I'm alone to meet this "blocking" problem with CB used with Ubuntu 26.04 launched into WSL session on W11 26H2 64 bit Family ...
No reaction with developer team CB...
Sniff !

Regards.

PS : Not "spam" message.
14
Using Code::Blocks / Re: Traditional 'C'
« Last post by KenWhight on November 14, 2026, 10:22:37 am »
Thanks for the explanation, I had assumed that C++ files were identified only by .cpp as in Visual C++. I'll close this topic in a few days if there are no more replies. Thanks again to all who contributed.
Ken
15
Using Code::Blocks / Re: Traditional 'C'
« Last post by Miguel Gimenez on November 13, 2026, 07:44:19 pm »
Glad it worked.

The issue is because gcc.exe intentionally identifies files with .c extension as C sources and files with .C extension as C++, so the object generated for LINALG.C has all names mangled and cannot be linked with an unmangled object.
16
Using Code::Blocks / Re: Traditional 'C'
« Last post by KenWhight on November 12, 2026, 07:36:19 pm »
I changed the upper case filenames to lower case and IT ALL WORKS! Thanks for your help CodeBlocks is much better than Visual C++, it's easier to set up a simple console project. I'm very happy with the change.
Ken
17
Using Code::Blocks / Re: Traditional 'C'
« Last post by Miguel Gimenez on November 12, 2026, 11:27:42 am »
I do not see relevant differences, apart from filename case.

Did you try to compile my project?
18
Using Code::Blocks / Re: Traditional 'C'
« Last post by KenWhight on November 11, 2026, 09:00:23 pm »
Here's the .cbp file. It was created by the Console Application Wizard, I don't recall any options in the creation process. So am confused as to why it doesn't work.
19
Using Code::Blocks / Re: Traditional 'C'
« Last post by Miguel Gimenez on November 11, 2026, 07:42:39 pm »
The code compiled OK out of the box, so it must be a problem with the .cbp file you did not post.

I have reformatted the code a little (added guards, reordered struct declarations and declared square_matrix_create() in the .h). The .cbp file is included, so you can open it and compile.
20
Using Code::Blocks / Re: Traditional 'C'
« Last post by KenWhight on November 11, 2026, 06:42:37 pm »
Here's the code
Pages: 1 [2] 3 4 5 6 7 ... 10