[Interest] Linker error: undefined reference to symbol 'g_type_check_instance_cast'

Thiago Macieira thiago.macieira at intel.com
Mon Aug 3 18:03:41 CEST 2015


On Monday 03 August 2015 15:58:05 vaishnavi nagarajan wrote:
> /usr/bin/ld: soundgst.o: undefined reference to symbol
> 'g_type_check_instance_cast'

There's no file called "soundgst" in the Qt sources. That means the error above 
comes from your sources.

The function "g_type_check_instance_cast" is not a Qt one (probably Glib, 
given its name), so it's up to you to figure it out.

Here's what you need to do:
 1) what library provides that symbol? Have you checked the function's API 
documentation to see what library that is? Make sure that you have that 
library in LIBS +=

 2) make sure the library actually contains that symbol. Use nm -D on the 
library to list all symbols and confirm it's there.

 3) if it's not there, check where the symbol got declared from. Was it from a 
system-installed header? If so, you have mismatching header and library 
installations -- fix your system. If it got declared from your own sources, fix 
your sources.

> (kit: Desktop Qt 5.0.2 GCC 64bit)

Upgrade. Now.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list