Recent Posts

Pages: [1] 2 3 ... 10
1
Installation help / Re: Code::Blocks
« Last post by johnhoth on 19 May 2018, 06:03:16 »
I have reinstalled codeblocks, sfml, tgui.

And it is working.

Thank you for everything.

Your TGUI is AMAZING
2
Installation help / Re: Code::Blocks
« Last post by texus on 18 May 2018, 22:22:27 »
Is "Enable c++14" (or "Enable c++1y") checked in the compiler settings?
Make sure to use an SFML and TGUI version that match each other and the compiler. SFML 2.5 only provides a build for GCC 5.1, similar to the TGUI 0.8 alpha version. If you use GCC 4.9 (from codeblocks 16.04) then you not only have to use the SFML 2.4.2 package but also a TGUI version that was build with SFML 2.4.2 and GCC 4.9 (like the pre-alpha versions). If you can't find matching versions then you could always build SFML and TGUI yourself with whatever compiler you want to use.

I would suggest just getting CodeBlocks 17.12, SFML 2.5 and TGUI 0.8-alpha, all using TDM GCC 5.1 (SJLJ).
3
Installation help / Re: Code::Blocks
« Last post by johnhoth on 18 May 2018, 21:08:35 »
I have devolved my codeblocks to 16.01.

Now there some compiler errors, it is crying about syntaxis

Also i've add "#define _GLIBCXX_USE_CXX11_ABI 0".

https://drive.google.com/file/d/1DqxRwMJG5n6g8n0L7n1sRtjc2aykin3G

Pls help me.
4
Installation help / Re: Code::Blocks
« Last post by texus on 18 May 2018, 20:17:47 »
_Unwind_Resume indicates that the libraries were build for a different compiler version. Since SFML 2.4.2 had libraries build for TDM GCC 4.9 and the latest codeblocks uses TDM GCC 5.1 by default, that might be the issue.
5
Installation help / Re: Code::Blocks
« Last post by johnhoth on 18 May 2018, 20:08:24 »
Hi!

Let's begin with BIG THANKS to texus, i fixed those errors by his method

And I have some another yummy - about 6 errors (not in my project) with substing "_Unwind_Resume".

I am using last at (18 of may 2018) Code::Blocks, TGUI-0.8-dev and SFML-2.4.2

Thanks for any reply.

6
Installation help / Re: Code::Blocks
« Last post by texus on 17 May 2018, 17:55:31 »
The most important thing to check for these errors is under the "Linker settings" tab. Based on the errors I would guess you are linking to static SFML libraries (ending with -s but with dynamic TGUI libs, or the other way around). Make sure both SFML and TGUI have the same suffixes (combinations of "-s" and "-d") and that SFML_STATIC is defined under "Compiler settings" > "#defines" when linking to SFML and TGUI statically.
7
Installation help / Re: Code::Blocks
« Last post by johnhoth on 17 May 2018, 16:20:42 »
8
Help requests / Re: v0.8-dev - Picture signals
« Last post by texus on 16 May 2018, 18:09:54 »
What does "tgui::getDoubleClickTime()" return?
9
Help requests / Re: v0.8-dev - Passing custom parameters
« Last post by texus on 16 May 2018, 17:52:42 »
The 'this' parameter has to be a pointer to the class instance (the value that 'this' would have when using 'this' inside the callback function itself). So you have to pass something else when the connect call is not being called from inside the PanelClient class.
PanelClient client;
button->connect("pressed", &PanelClient::windowChooseKey, &client, "txtWindowShowKey" );

Edit: If that isn't the problem then could you show the build output? I just googled C2075 and it seems like it has nothing to do with this line itself. Are you using VS2015 update 2 or higher?
10
Help requests / Re: v0.8-dev - Passing custom parameters
« Last post by roccio on 16 May 2018, 09:39:28 »
Still have the same error (Visual C++ 2015 reports error C2075).

Code: [Select]
class PanelClient
{
private:
    void windowChooseKey(const std::string& textbox)
   {
        std::cout << "Here I am" << std::endl;
   }
}

 later in code...

Code: [Select]
button->connect("pressed", &PanelClient::windowChooseKey, this, "txtWindowShowKey" );

When compiling error C2075
Pages: [1] 2 3 ... 10