undefined reference, Rocket::Core::Assert?

Discussion of features and help with problems encountered while using libRocket

undefined reference, Rocket::Core::Assert?

Postby DEF on Sat Sep 24, 2011 1:38 pm

I've come across this and I'm not sure how to fix it:

) const]+0x45)||undefined reference to `_imp___ZN6Rocket4Core6AssertEPKcS2_i'|

Does this mean it cant find Rocket::Core::Assert? This happens when I try to GetAttribute with a template
Code: Select all
element->GetAttribute<Rocket::Core::String>("checked","")

also
Code: Select all
element->GetAttribute("checked")->Get<Rocket::Core::String>()

gives the same error. Does anyone know what the problem is?

Using
Code: Select all
element->GetAttribute("checked")

returns the pointer correctly, so getting the Variant* is working (returns 0 when the checkbox is not checked / a pointer when it is checked), so I'm wondering if it has something to do with TypeConverter?

I'm using MinGW with Code::Blocks, on Windows 7 32bit, if that helps.
DEF
 
Posts: 2
Joined: Sat Sep 24, 2011 1:16 pm

Re: undefined reference, Rocket::Core::Assert?

Postby lloydw on Sun Oct 09, 2011 10:48 pm

The Get function on Variant, will be pulling in ASSERT if ROCKET_DEBUG is defined. Sounds like ROCKET_DEBUG was not defined when you compiled the rocket DLLs but it is being defined in your project?
lloydw
Rocket Engineer
Rocket Engineer
 
Posts: 380
Joined: Tue Jan 15, 2008 10:56 pm

Re: undefined reference, Rocket::Core::Assert?

Postby DEF on Wed Oct 12, 2011 12:24 pm

I've re-downloaded from git, re-compiled (although I didn't see any option for ROCKET_DEBUG in cmake) and tried the new libs and dlls, but still the same thing. I'm not defining ROCKET_DEBUG anywhere, and I even tried explicitly undefining ROCKET_DEBUG in my program but still no go.
DEF
 
Posts: 2
Joined: Sat Sep 24, 2011 1:16 pm



Return to Using libRocket


cron