help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undefined reference when properly linked


From: nonlocation
Subject: Undefined reference when properly linked
Date: Sat, 25 May 2013 18:29:54 -0700 (PDT)
User-agent: G2/1.0

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]