Recent Posts

Pages: 1 2 [3] 4 5 6 7 8 ... 10
21
Maybe I should install 64 bit 20.03 again, but add 32 bit mingw compiler to it? But I don't know how.
22
I installed 64 bit code blocks 20.03 with mingw. I tried to compile 32 bit application with -m32 flag but it doesn't work because there are no 32 bit libraries.
https://forums.codeblocks.org/index.php?topic=23868.0

Because of that I downloaded 32 bit code blocks 20.03 with mingw. After installation and running it, it showed error that there is no compiler executable. I had to fix path to compiler and file names. After that it worked and I compiled my 32 bit application.
When I run my application it crashes at some point. I wanted to find out why so I compiled debug version with debugging symbols and I run it with debugger. However, when the application crashes the debugger doesn't show line of code that makes it crash, debugger is broken.

Then I installed codeblocks 17.02 32 bit. When I try to debug there is error that debugger cannot be found. After I set it to C:\Program Files (x86)\CodeBlocks\MinGW\bin\gdb32.exe when I try to debug, I get "Debugger finished with status 1" when trying to debug my application.

What to do now when no codeblocks version works? I will look for alternatives.
https://alternativeto.net/software/codeblocks/
23
Nightly builds / The 25 February 2024 build (13483) is out.
« Last post by killerbot on February 25, 2024, 08:12:29 pm »
We switched to gcc 13.1.0 (on 04 June 2023) --> download the new wx/mingw dll's see link below

Get the compiler we use here : https://github.com/brechtsanders/winlibs_mingw/releases/download/13.1.0-16.0.5-11.0.0-ucrt-r5/winlibs-x86_64-posix-seh-gcc-13.1.0-mingw-w64ucrt-11.0.0-r5.7z

Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll(s) for Code::Blocks : https://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/wxmsw32u_gcc_cb_wx324_2D_gcc1310-mingw64.7z
A link to Mingw64 dll's needed by Code::Blocks : http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/Mingw64dlls13.1.0.7z


The 25 Februari 2024 build is out.
  - Windows :
   http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/2024/CB_20240225_rev13483_win64.7z
  - Linux :
   none

The current SDK version is : 2.25.0

Resolved Fixed:

  • wxScintilla: Fix crash in PlatWX.cpp when using CodeCompletion. See Ticket #1458

Regressions/Confirmed/Annoying/Common bugs:


    24
    Plugins development / Re: OnScriptMenu: the index 'GetFileName' does not exist
    « Last post by Miguel Gimenez on February 25, 2024, 11:42:37 am »
    Scripts are case-sensitive:
    Code
    wxString 	GetFilename
    25
    Plugins development / OnScriptMenu: the index 'GetFileName' does not exist
    « Last post by Anbang24 on February 25, 2024, 08:59:25 am »
    I write a piece of script to get the filename in the active editor as following:

    Code
            local edman = GetEditorManager();
            if (IsNull(edman))
           {
                ShowError(_("Could not query the Editor manager. Cannot continue."));
                return 0;
            }
            local editor = edman.GetActiveEditor();
            if (IsNull(editor)) 
           {
                ShowError(_("No active editor. Cannot continue."));
                return 0;
            }
            local fname = editor.GetFileName();  //??
            ShowInfo(fname);

    It is very simple, however, I got the following message in running:
        OnScriptMenu:the index 'GetFileName' does not exist

    I carefully read the Scripting commands (https://wiki.codeblocks.org/index.php/Scripting_commands),
    but still don't understand why this happens. Does the command deprecated?



    26
    Development / Re: codecompletion uses Manager::Get()->GetConfigManager("clangd_client")
    « Last post by Pecan on February 25, 2024, 06:33:11 am »
    Fixed Head rev. 13483
    27
    Help / Re: Setting up OpenGL on Code:Blocks
    « Last post by twcp0104 on February 25, 2024, 01:54:33 am »
    I appreciate the replies. I will keep trying by myself
    28
    Help / Re: Setting up OpenGL on Code:Blocks
    « Last post by Miguel Gimenez on February 24, 2024, 08:14:23 pm »
    GCC expects libfreeglut.a, the .lib file is probably meant for MSVC and is not compatible.
    29
    Help / Re: Setting up OpenGL on Code:Blocks
    « Last post by stahta01 on February 24, 2024, 08:13:16 pm »
    Adding random files from the Internet to an compiler installation is most likely to not work and even break the compiler installation.
    I suggest reading the rules for this website!

    https://forums.codeblocks.org/index.php/topic,9996.0.html

    Edit: If after reading the rules, you still think it is a valid topic for this website; post a build log in code tags.
    https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

    Tim S.
    30
    Help / Setting up OpenGL on Code:Blocks
    « Last post by twcp0104 on February 24, 2024, 07:30:53 pm »
    Hello all.

    I've been trying to set up code blocks for openGL and have been having a lot of trouble. I was wondering if anybody could lend me a hand.

    ok, here's what I did.
    1) downloaded freeglut, put freeglut.lib in the lib folder of mingw, put freeglut.h in include/gl of mingw.
    2) I editted the wizard file to change glut32 to free glut. I did the same to the template file
    3)Created a new project with the opengl template.

    this is the code i've been trying to run (it's just the standard test program for codeblocks):

    /*
     * GLUT Shapes Demo
     *
     * Written by Nigel Stewart November 2003
     *
     * This program is test harness for the sphere, cone
     * and torus shapes in GLUT.
     *
     * Spinning wireframe and smooth shaded shapes are
     * displayed until the ESC or q key is pressed.  The
     * number of geometry stacks and slices can be adjusted
     * using the + and - keys.
     */
    #include <windows.h>
    #ifdef __APPLE__
    #include <GLUT/glut.h>
    #else
    #include <GL/glut.h>
    #endif

    #include <stdlib.h>

    static int slices = 16;
    static int stacks = 16;

    /* GLUT callback Handlers */

    static void resize(int width, int height)
    {
        const float ar = (float) width / (float) height;

        glViewport(0, 0, width, height);
        glMatrixMode(GL_PROJECTION);
        glLoadIdentity();
        glFrustum(-ar, ar, -1.0, 1.0, 2.0, 100.0);

        glMatrixMode(GL_MODELVIEW);
        glLoadIdentity() ;
    }

    static void display(void)
    {
        const double t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
        const double a = t*90.0;

        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
        glColor3d(1,0,0);

        glPushMatrix();
            glTranslated(-2.4,1.2,-6);
            glRotated(60,1,0,0);
            glRotated(a,0,0,1);
            glutSolidSphere(1,slices,stacks);
        glPopMatrix();

        glPushMatrix();
            glTranslated(0,1.2,-6);
            glRotated(60,1,0,0);
            glRotated(a,0,0,1);
            glutSolidCone(1,1,slices,stacks);
        glPopMatrix();

        glPushMatrix();
            glTranslated(2.4,1.2,-6);
            glRotated(60,1,0,0);
            glRotated(a,0,0,1);
            glutSolidTorus(0.2,0.8,slices,stacks);
        glPopMatrix();

        glPushMatrix();
            glTranslated(-2.4,-1.2,-6);
            glRotated(60,1,0,0);
            glRotated(a,0,0,1);
            glutWireSphere(1,slices,stacks);
        glPopMatrix();

        glPushMatrix();
            glTranslated(0,-1.2,-6);
            glRotated(60,1,0,0);
            glRotated(a,0,0,1);
            glutWireCone(1,1,slices,stacks);
        glPopMatrix();

        glPushMatrix();
            glTranslated(2.4,-1.2,-6);
            glRotated(60,1,0,0);
            glRotated(a,0,0,1);
            glutWireTorus(0.2,0.8,slices,stacks);
        glPopMatrix();

        glutSwapBuffers();
    }


    static void key(unsigned char key, int x, int y)
    {
        switch (key)
        {
            case 27 :
            case 'q':
                exit(0);
                break;

            case '+':
                slices++;
                stacks++;
                break;

            case '-':
                if (slices>3 && stacks>3)
                {
                    slices--;
                    stacks--;
                }
                break;
        }

        glutPostRedisplay();
    }

    static void idle(void)
    {
        glutPostRedisplay();
    }

    const GLfloat light_ambient[]  = { 0.0f, 0.0f, 0.0f, 1.0f };
    const GLfloat light_diffuse[]  = { 1.0f, 1.0f, 1.0f, 1.0f };
    const GLfloat light_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
    const GLfloat light_position[] = { 2.0f, 5.0f, 5.0f, 0.0f };

    const GLfloat mat_ambient[]    = { 0.7f, 0.7f, 0.7f, 1.0f };
    const GLfloat mat_diffuse[]    = { 0.8f, 0.8f, 0.8f, 1.0f };
    const GLfloat mat_specular[]   = { 1.0f, 1.0f, 1.0f, 1.0f };
    const GLfloat high_shininess[] = { 100.0f };

    /* Program entry point */

    int main(int argc, char *argv[])
    {
        glutInit(&argc, argv);
        glutInitWindowSize(640,480);
        glutInitWindowPosition(10,10);
        glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);

        glutCreateWindow("GLUT Shapes");

        glutReshapeFunc(resize);
        glutDisplayFunc(display);
        glutKeyboardFunc(key);
        glutIdleFunc(idle);

        glClearColor(1,1,1,1);
        glEnable(GL_CULL_FACE);
        glCullFace(GL_BACK);

        glEnable(GL_DEPTH_TEST);
        glDepthFunc(GL_LESS);

        glEnable(GL_LIGHT0);
        glEnable(GL_NORMALIZE);
        glEnable(GL_COLOR_MATERIAL);
        glEnable(GL_LIGHTING);

        glLightfv(GL_LIGHT0, GL_AMBIENT,  light_ambient);
        glLightfv(GL_LIGHT0, GL_DIFFUSE,  light_diffuse);
        glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular);
        glLightfv(GL_LIGHT0, GL_POSITION, light_position);

        glMaterialfv(GL_FRONT, GL_AMBIENT,   mat_ambient);
        glMaterialfv(GL_FRONT, GL_DIFFUSE,   mat_diffuse);
        glMaterialfv(GL_FRONT, GL_SPECULAR,  mat_specular);
        glMaterialfv(GL_FRONT, GL_SHININESS, high_shininess);

        glutMainLoop();

        return EXIT_SUCCESS;
    }


    and this is the error ive been receiving:

    ||=== Build: Debug in LearningOpenGL (compiler: GNU GCC Compiler) ===|
    ld.exe||cannot find -lfreeglut|
    ||error: ld returned 1 exit status|
    ||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|


    It seems like im close to get it working but ive been stuck here for a while, hence the appeal for help. I know it has something to do with the linkers.
    pls help

    Pages: 1 2 [3] 4 5 6 7 8 ... 10