Are you sure G(sym_initialize) is initialized correctly? It doesn't work when I try it.
Also, when I print G(sym_initialize) with cout I get 0x22 (undef?).