Recent Posts

Pages: 1 2 3 4 [5] 6 7 8 9 10
41
Using Code::Blocks / Re: Strange crash
« Last post by Grit Clef on June 08, 2024, 02:13:57 pm »
Hi,
    This time I want to update my CB build from 13518 to 13525. When I was building CB's core, I suddenly found that CB crashed again when it started to build the target 'AStyle'. The RPT file with debug info is attached, hope it works for you devs!
42
General (but related to Code::Blocks) / Re: C++ Code::Blocks Linking Issues
« Last post by stahta01 on June 07, 2024, 09:14:08 pm »
https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

1. Read the error in the build log.
2. Use an Internet Search Engine like Google to find help on the error

Tim S.
43
Future spam added to radar.
44
General (but related to Code::Blocks) / C++ Code::Blocks Linking Issues
« Last post by alonzomint on June 07, 2024, 09:14:44 am »
Hello,
I  write a simple 2D game engine and have run into a problem I can't solve. After having spent hours googling fruitlessly I turn to you in desperation.

I am using Code::Blocks to work on this project and have run into what I think is some kind of linking error. I am getting an "undefined reference" message for my TextureManager::draw() function.

Any advice?
45
Using Code::Blocks / Re: Code::Blocks don't finds my SDL2 libs
« Last post by stahta01 on June 06, 2024, 06:42:54 pm »
I consider the PDF directions to be something that I would never recommend to follow.
Copying files into a good compiler installation is a way to change it into a bad compiler installation.

Edit: See link https://wiki.codeblocks.org/index.php/Global_compiler_variables

Tim S.
46
Using Code::Blocks / Re: Code::Blocks don't finds my SDL2 libs
« Last post by moevenbaer on June 05, 2024, 11:49:31 pm »
For my current solution to get a running SDL2 installation with codeblocks I created a short description as pdf, that works fine to let the sdl2 template work.
One better step would be to know, how to set the $(#sdl2) before creating the sdl2 project (or while, if possible?). But I don't know yet.

So I hope this is helpfull to one other.

Ekkehard
 
47
Using Code::Blocks / Re: Code::Blocks don't finds my SDL2 libs
« Last post by moevenbaer on June 05, 2024, 11:32:08 pm »
Thankyou Tim,
my problem is/was to learn about what this 32/64 really is.
It is (using 32 and 64 in names and x86_64 and i686 and ...) very confusing.
My first goal was to get a code::blocks installation to use c++ console.
My second goal becomes a little bit more problematic. Learning what libs does what was again very confusing.
So I learned, that SDL2 and GLFW make in parts the same (windoing, keyboard, mouse), but SDL2 has additionally an API for 2d graphics.
And looking forward to 3D I learnd that there are different Frameworks (directx, vulcan, opengl, ...)
But I didn't understand how the libs work together (SDL2/GLFWand OpenGL). Now I hope to have an idea about that.
Surfing the Internet there where so many different ways, and I got no one to work. More Confusing was, that there are GlUT, GLEW, GLAD, ... and I don't know today why I do need them and which. The background of GL-function-pointer (GLAD) and so on I didn't understand.

So for now I wanted to figure out a repeatable way to get a C++ IDE with 2D and 3D capabillities. I decided to use SDL2 with Code::Blocks. And now I decide, that I don't want to look back to 32-bit. I have no reason to do so. And the compiler suite doesn't matter. So I use the MinGW only because the block::code installation brings it within.

And for now a hour ago i figured out, that the cbp file stays containing the $(#sdl2) maxcro/variable, allthough i overwritten it with the MinGW folder while sdl2 project creating. Exchage it with full folder path is working. And copying the fitting (i686 or x86_64) SDL2.dll into the bin folders of the project let the main template cpp file run too.
Thank you
Ekkehard

48
Using Code::Blocks / Re: Code::Blocks don't finds my SDL2 libs
« Last post by stahta01 on June 05, 2024, 08:30:56 pm »
You need to stop doing the things you have done! MIXING 32 and 64 bit DOES NOT WORK!

You need to decide what you wish to do!

1. Do you wish to build using 64 bit or 32 bit?
2. Find an compiler or library that matches the bit size you wish to use?
3. Now find either a compiler or library to match the choice in 2?
Note: You can just choose a compiler in step 2 and the build the SDL2 library using that compiler.

Me, assuming windows 10 [or 11] 64 bit, I would install MSys2 MINGW64 GCC and SDL2 and use that for questions 1 to 3.
It [Msys2 SDL2] will take work; but, I can likely help you figure out how to get a simple example to build.

Tim S.
49
Using Code::Blocks / Re: Code::Blocks don't finds my SDL2 libs
« Last post by moevenbaer on June 05, 2024, 06:38:39 pm »
So here is my promised reply:
I am running Code::Blocks release 20.03 - rev 11983 (2020-03-12 18:24:30) - gcc 8.1.0 Windows/unicode - 64 bit on Windows 11 Home(version 23H2 build 22631.3593). The compiler I use is build in MinGW.

When I ...
In my first problem I tried to buil this from scratch. With no success. But now I build the normal SDL2.0 project.
When it ask for the includ/lib folder with shown $(#sdl2) in the input line, I replaced it with the full paath to MinGW inside codeblocks installation folder.
The lib and the include folder fom the SDL2 devel file I copied earlier to there. The include directive for SDL.h I updated to SDL2/SDL.h.
... the following happens ...
The building tells the following build messages.
Code
||=== Build: Debug in SDL2TestA (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lSDL2main|
ld.exe||cannot find -lSDL2.dll|
||error: ld returned 1 exit status|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
and the later following build log.
Messing around with the files I found the project xml file and in there at the end the overwritten $(#sdl2). Setting this to the ame folder as inputted, the things went well.
All though the from the scratch version I'm not able to build.

So my question changes a little bit:
How and where shell I set the macro variable for $(#sdl2) in the project (or better codeblocks?) settings?

Build log:
Code
-------------- Build: Debug in SDL2TestA (compiler: GNU GCC Compiler)---------------
g++.exe -Wall -g -IC:\CODEBLOCKS\CodeBlocks\MinGW\include -c C:\CODEBLOCKS\CB_WSp\SDL2TestA\main.cpp -o obj\Debug\main.o
g++.exe -LC:\CODEBLOCKS\CodeBlocks\MinGW\lib -o bin\Debug\SDL2TestA.exe obj\Debug\main.o   -lmingw32 -lSDL2main -lSDL2.dll -luser32 -lgdi32 -lwinmm -ldxguid
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\CODEBLOCKS\CodeBlocks\MinGW\lib/libSDL2main.a when searching for -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\CODEBLOCKS\CodeBlocks\MinGW\lib\libSDL2main.a when searching for -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/libSDL2main.a when searching for -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib\libSDL2main.a when searching for -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../libSDL2main.a when searching for -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..\libSDL2main.a when searching for -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\CODEBLOCKS\CodeBlocks\MinGW\lib/libSDL2main.a when searching for -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/libSDL2main.a when searching for -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../libSDL2main.a when searching for -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2main
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\CODEBLOCKS\CodeBlocks\MinGW\lib/libSDL2.dll.a when searching for -lSDL2.dll
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\CODEBLOCKS\CodeBlocks\MinGW\lib\libSDL2.dll.a when searching for -lSDL2.dll
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/libSDL2.dll.a when searching for -lSDL2.dll
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib\libSDL2.dll.a when searching for -lSDL2.dll
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../libSDL2.dll.a when searching for -lSDL2.dll
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..\libSDL2.dll.a when searching for -lSDL2.dll
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\CODEBLOCKS\CodeBlocks\MinGW\lib/libSDL2.dll.a when searching for -lSDL2.dll
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/libSDL2.dll.a when searching for -lSDL2.dll
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../libSDL2.dll.a when searching for -lSDL2.dll
C:/CODEBLOCKS/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2.dll
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 1 second(s))
3 error(s), 0 warning(s) (0 minute(s), 1 second(s))
50
Help / Re: some of my workspaces don't have "other" files folder
« Last post by Miguel Gimenez on June 05, 2024, 05:08:18 pm »
Future spam added to radar.
Pages: 1 2 3 4 [5] 6 7 8 9 10