Recent Posts

Pages: 1 2 3 4 5 [6] 7 8 9 10
51
Nightly builds / The 14 June 2024 build (13529) is out
« Last post by ThierryD on July 05, 2024, 03:41:03 pm »
Hi,

Ok sodev,  it's clear. Like clangd ... I suppose.
How CB integrate Cmake (or not) ?
Thank's ?

Thierry D.
52
Help / Re: Building Codeblocks with LLVM Clang error
« Last post by stahta01 on July 05, 2024, 02:49:10 pm »
I did not see that error under MSys2 CLANG64 which uses
Code
$ clang --version
clang version 18.1.8
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/clang64/bin

Tim S.
53
Do a search for dbgcore.dll in all your disks.
54
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?

55
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.
56
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?!
57
Do you have another dbgcore.DLL outside F:\Codeblocks?
58
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 »
59
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
60
What OS are you using?
Pages: 1 2 3 4 5 [6] 7 8 9 10