Undefined reference when properly linked

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Undefined reference when properly linked

nonlocation
As the title says, I'm not sure what else to do.  The library I'm trying to use gave me extra qualification errors at first:

crm/mste.h:211:9: error: extra qualification 'cMSTE::st_layers::' on member 'st_layers' [-fpermissive]
crm/mste.h:212:9: error: extra qualification 'cMSTE::st_layers::' on member 'st_layers' [-fpermissive]
crm/mste.h:222:5: warning: 'typedef' was ignored in this declaration [enabled by default]
crm/mste.h:236:9: error: extra qualification 'cMSTE::st_tilesets::' on member 'st_tilesets' [-fpermissive]
crm/mste.h:237:9: error: extra qualification 'cMSTE::st_tilesets::' on member 'st_tilesets' [-fpermissive]
crm/mste.h:238:9: error: extra qualification 'cMSTE::st_tilesets::' on member 'st_tilesets' [-fpermissive]
crm/mste.h:239:5: warning: 'typedef' was ignored in this declaration [enabled by default]

I removed the scope prefixes from them and it works, however at linking I get this:

parsed.o:parsed.cpp:(.text+0x612): undefined reference to `cMSTE::cMSTE()'
parsed.o:parsed.cpp:(.text+0x911): undefined reference to `cMSTE::~cMSTE()'
parsed.o:parsed.cpp:(.text+0x969): undefined reference to `cMSTE::~cMSTE()'
collect2: ld returned 1 exit status

I do not know why it doesn't know what its constructors and destructors are.
_______________________________________________
help-gplusplus mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-gplusplus