Recent Posts

Pages: 1 2 [3] 4 5 6 7 8 ... 10
21
Help / Re: Used .deb files to install Codeblocks
« Last post by mac48601 on June 03, 2026, 04:18:49 pm »
This worked for me using bash. The graphical install never worked. This will install code:blocks 25.03 rev 13644

sudo apt update
sudo apt install codeblocks codeblocks-contrib
sudo apt install build-essentials gdb
codeblocks

select the GNUGCC Compiler and set it as default.
22
Nightly builds / Re: The 27 May 2026 build (13855) is out.
« Last post by MaxGaspa on June 02, 2026, 10:32:54 pm »
Try deleting all the .layout files to see if that fixes the problem.

No. It doesn't work. So the only solution is to re-customize everything. Very boring and time consuming. Am I the only one with this issue?
23
Nightly builds / Re: The 27 May 2026 build (13855) is out.
« Last post by MaxGaspa on June 02, 2026, 10:26:59 pm »
You can change the colors using Environment Settings, Select Colours Image or Icon, Below is a comBoBox that say select application appearance if(supported by platform) and you can change the combobox to 3 options system default, Light , Dark theme.

There is no Environment Settings, Select Colours Image or Icon. I'm using Windows 11 25H2. So dark mode is not supported in Windows 11?
24
Using Code::Blocks / Re: New project templates missing/empty
« Last post by Kayn on June 02, 2026, 04:56:09 pm »
Thanks. That seems to have soled the issue.

It's a shame that there is no hint about this anywhere to be found :'( In times when plugins often break crashing the whole app user tend to disable many plugins. It would be very helpful to get warned about the consequences about this kind of plugin-disabling...

Another questions (off topic):
How to properly upload and link/reference images/screen shots inside a post? I kind of managed to do so and the image is being shown when I'm logged in but the image is not being shown to a random not logged in forum user. Wtf?

How to improve the captcha? I'm having big trouble identifying the letters in the captcha to the point where the forum becomes almost unusable to me. The "listen to letters" function seems broken as well. So submitting a post to the forum needs several attempts (8 or so) and is very annoying.
This really needs to change.
25
Using Code::Blocks / Re: New project templates missing/empty
« Last post by Miguel Gimenez on June 01, 2026, 03:23:35 pm »
The templates are added by the Scripted Wizard plugin, have you enabled it? (it should be enabled by default).

You can see which plugins are enabled in Help/About/Plugins or Plugins/Manage plugins...
26
Using Code::Blocks / New project templates missing/empty
« Last post by Kayn on June 01, 2026, 01:29:36 pm »
Hi,

when I try to create a new project, I find the project template to be empty.


No project templates to choose from at all.


What would be a good strategy to find the cause of this issue?

My System is manjaro and endavourOS, both arch based.
Release is:
Release 25.03 rev 13644 (2025-03-29 05:36:19) gcc 15.1.1 Linux/unicode - 64 bit
27
Nightly builds / Re: The 27 May 2026 build (13855) is out.
« Last post by ThierryD on May 31, 2026, 03:25:28 pm »
Thanks Eckhart,

Today, I retry to download and diagnostic is same but Trojan detected not (???) (in file join).

I will try download nightly CB on Linux first (on my laptop with double boot), I will try to decompress always on Linux (partition NTFS with access "write"), and after reboot on W11 2H2 to see result.

Regards.
28
Development / Virus detected in last nightly version (13855)
« Last post by sergioferrari52 on May 31, 2026, 02:28:59 pm »
When I try to download the latest nightly build archive (CB_20260527_rev13855_win64.7z) on Windows 10/11 (using Chrome or Edge), the download is interrupted because a virus is detected.
Please look into this.
29
For point 1, could you please try adding the header files also to target_sources?

Out of curiousity, is there any standard approach for having a cross platform IDE-independent build system that works out of the box with CodeBlocks?

C::B supports external makefile projects. Please see wiki

As per manual, ProjectsImporter plugin imports foreign projects and workspaces from Dev-C++, MSVC6, MSVC7, and MSVC8 for use as a Code::Blocks project. It does not support CMake yet.
30
Hi, I used the codeblocks cmake generator to generate a cbp for my cmake monorepo. It almost works flawlessly! However there are 2 issues.

1. Headers in the subprojects include/ directories are not listed under "Headers" in the codeblocks UI.
2. Some CMake tasks such as copying a resources folder do not pass successfully because presumably the directories get messed up by the codeblocks generator.

Is there anything I should be doing specifically so the project just works? I am generating the cbp in MY_PROJECT_ROOT/build-codeblocks/myproject.cbp. I would like to still have the CMake setup since it seems more portable than CodeBlocks own build system. Honestly, surprised it doesn't support CMake projects out of the box or have a good plugin for this.

Out of curiousity, is there any standard approach for having a cross platform IDE-independent build system that works out of the box with CodeBlocks?

Here's my root CMakeLists:
Code
cmake_minimum_required(VERSION 3.19)
project(myproj)

set(CMAKE_C_STANDARD 90)
set(CMAKE_C_STANDARD_REQUIRED ON)

# Add debug information
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_C_FLAGS_DEBUG "-g -O0")

if(DEFINED ENV{VCPKG_ROOT})
    set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "")
endif()

add_subdirectory(libraries/libfoo)
add_subdirectory(apps/myapp)



And here is the libfoo CMakeLists
Code
cmake_minimum_required(VERSION 3.19)

project(libfoo)

# Define implementation-specific options for libfoo
option(USE_VULKAN "Use Vulkan implementation in libfoo" OFF)
option(USE_OPENGL "Use OpenGL implementation in libfoo" ON)

# Ensure only one implementation is selected
if(USE_VULKAN AND USE_OPENGL)
    message(FATAL_ERROR "Cannot use both Vulkan and OpenGL implementations in libfoo at the same time.")
endif()

add_library(libfoo STATIC
    src/libfoo.c
)

# Include the platform-specific source folder
if(WIN32)
    target_sources(libfoo PRIVATE src/win/libfoo_win.c)
elseif(APPLE)
    target_sources(libfoo PRIVATE src/mac/libfoo_mac.c)
elseif(UNIX)
    target_sources(libfoo PRIVATE src/linux/libfoo_linux.c)
endif()



# Include the implementation-specific source folder
if(USE_VULKAN)
    message(STATUS "Including Vulkan source files in libfoo")
    target_sources(libfoo PRIVATE src/vulkan/libfoo_vulkan.c)
elseif(USE_OPENGL)
    message(STATUS "Including OpenGL source files in libfoo")
    target_sources(libfoo PRIVATE src/opengl/libfoo_opengl.c)
else()
    message(FATAL_ERROR "Neither USE_VULKAN nor USE_OPENGL is defined in libfoo!")
endif()

# Include the public headers
target_include_directories(libfoo PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/include
)

# Define LIBFOO_EXPORTS for the libfoo target
target_compile_definitions(libfoo PRIVATE LIBFOO_EXPORTS)

find_package(glfw3 CONFIG REQUIRED)
target_link_libraries(libfoo PRIVATE glfw)

# Setup tests
enable_testing()

# Find all .c files in tests/
file(GLOB TEST_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/tests/*.c")

foreach(test_src ${TEST_SOURCES})
    get_filename_component(test_name ${test_src} NAME_WE)
    add_executable(${test_name} ${test_src})
#    target_link_libraries(${test_name} PRIVATE libfoo libbar)
    add_test(NAME ${test_name} COMMAND ${test_name})
endforeach()



folder structure:
MY_PROJECT_ROOT/libraries/libfoo
2 folders inside - src & include
Pages: 1 2 [3] 4 5 6 7 8 ... 10