Recent Posts

Pages: 1 2 3 4 5 6 [7] 8 9 10
61
Help / Building Codeblocks with LLVM Clang error
« Last post by jeybee on July 05, 2024, 04:31:44 am »
I'm trying to build codeblocks with llvm clang, this has to be used as i am cross compiling. i've hit a snag that i can't figure out how to work around it

it's related to the manager.h

Code
template <class MgrT> class DLLIMPORT Mgr
{
    static MgrT *instance;
    static bool isShutdown;
    explicit Mgr(const Mgr<MgrT>&)         { ; };
    Mgr<MgrT>& operator=(Mgr<MgrT> const&) { ; };

protected:

    Mgr()          { assert(Mgr<MgrT>::instance == nullptr); }
    virtual ~Mgr() { Mgr<MgrT>::instance = nullptr; }


public:

    static bool Valid() { return instance; }

    static MgrT* Get()
    {
        if (instance == nullptr)
        {
            if (isShutdown == false)
                instance = new MgrT();
            else
                cbAssert(false && "Calling Get after the subsystem has been shutdown is an error!");
        }
        return instance;
    }

    static void Free()
    {
        isShutdown = true;
        delete instance;
        instance = nullptr;
    }

};

Code
template<> ColourManager* Mgr<ColourManager>::instance = nullptr;
template<> bool  Mgr<ColourManager>::isShutdown = false;


cbcolourmanager.cpp|18|error: explicit specialization of 'instance' after instantiation|

how can i modify the code to get around this issue. i understand i need to declare the explicit specialization.. but how can i do this? how do i modify the header in such a way that this satisfies the c++ standard that llvm clang is trying to adhere to?

62
Nightly builds / Re: The 30 June 2024 build (13533) is out.
« Last post by Uriens The Gray on July 04, 2024, 11:42:18 pm »
Works just fine from the MSYS2 packages. Thanks.
63
Help / Re: After Installation codeblocks-20.03mingw-setup, i can't open it...
« Last post by Armagedon on July 04, 2024, 09:27:52 pm »
Sorry!

But i can't understand you...can you be more specific?!
64
Do you have another dbgcore.DLL outside F:\Codeblocks?
65
Help / Re: After Installation codeblocks-20.03mingw-setup, i can't open it...
« Last post by stahta01 on July 04, 2024, 03:31:48 pm »
66
Help / Re: After Installation codeblocks-20.03mingw-setup, i can't open it...
« Last post by Armagedon on July 04, 2024, 02:19:26 pm »
windows 8.1
64-bit operatin system
67
What OS are you using?
68
Help / After Installation codeblocks-20.03mingw-setup, i can't open it...
« Last post by Armagedon on July 04, 2024, 12:39:42 pm »
Hi, everyone!

After installation codeblocks-20.03mingw-setup, and want to open "CodeBlocks", on desktop i get this..."The procedure entry point_o___cexit could not be located in the dynamic link library E\Codeblocks\dbgcore.DLL.

Does anyone have a probelm with this?!
69
General (but related to Code::Blocks) / Re: Problem with SFML 2.0 libraries
« Last post by stahta01 on July 03, 2024, 05:02:46 am »
Unable to answer questions! I still have no idea what MSys2 environment you are using; but, maybe you have no idea.

So, A help vampire or extreme newbie! Goodbye.

Tim S.
70
General (but related to Code::Blocks) / Re: Problem with SFML 2.0 libraries
« Last post by Qday on July 03, 2024, 04:27:51 am »
My build log of the project.
Code
-------------- Build: Debug_shared in demo_sfml (compiler: GNU GCC Compiler)---------------

g++.exe -Wall -fexceptions -g  -c H:\devel\cb_projects\test\testsfml\main.cpp -o obj\Debug\main.o
g++.exe  -o bin\Debug\testsfml.exe obj\Debug\main.o   -lsfml-window.dll -lsfml-graphics.dll -lsfml-system.dll
Output file is bin\Debug\testsfml.exe with size 368.23 KB

-------------- Build: Release_shared in demo_sfml (compiler: GNU GCC Compiler)---------------

g++.exe -Wall -fexceptions -O2  -c H:\devel\cb_projects\test\testsfml\main.cpp -o obj\Release\main.o
g++.exe  -o bin\Release\testsfml.exe obj\Release\main.o  -s  -lsfml-window.dll -lsfml-graphics.dll -lsfml-system.dll -mwindows
Output file is bin\Release\testsfml.exe with size 21.00 KB

-------------- Build: Debug_static in demo_sfml (compiler: GNU GCC Compiler)---------------

g++.exe -Wall -fexceptions -g -DSFML_STATIC  -c H:\devel\cb_projects\test\testsfml\main.cpp -o obj\Debug_static\main.o
g++.exe  -o bin\Debug_static\testsfml.exe obj\Debug_static\main.o   -lsfml-main -lsfml-window-s -lsfml-graphics-s -lsfml-system-s -lopengl32 -lwinmm -lgdi32
Output file is bin\Debug_static\testsfml.exe with size 1.43 MB

-------------- Build: Release_static in demo_sfml (compiler: GNU GCC Compiler)---------------

g++.exe -Wall -fexceptions -O2 -DSFML_STATIC  -c H:\devel\cb_projects\test\testsfml\main.cpp -o obj\Release_static\main.o
g++.exe  -o bin\Release_static\testsfml.exe obj\Release_static\main.o   -lsfml-main -lsfml-window-s -lsfml-graphics-s -lsfml-system-s -lopengl32 -lwinmm -lgdi32 -mwindows
Output file is bin\Release_static\testsfml.exe with size 1.21 MB
Process terminated with status 0 (0 minute(s), 5 second(s))
0 error(s), 0 warning(s) (0 minute(s), 5 second(s))

Are you unable of teaching ?? U honestly did not help me at all with my problem. Just pointing out how dumb I am. I just wanted to learn how to code and u are the worst person i couldve talked too.

I just istaled VS c++ followed one simple guide and made it all work. Very much not thank you.
Pages: 1 2 3 4 5 6 [7] 8 9 10