I need to use the glib-2.0 library in a program. So, I've tried to link the required library. However, I got an error that the functions used in my code (which are defined in glib-2.0 library) are not defined. Something like the following error.
LINK => nnenc.so
[check_symbol_table elfparser.cpp:231] symbol 'g_byte_array_set_size' is undefined
My makefile looks like the following (plus the SGX flags, because I just put the extra flags here):