|
From: John A. <jal...@st...> - 2005-02-02 06:16:38
|
Hello,
I am having trouble using OpenC++ version 2.8. I am trying to run OpenC++ on linux using the compiler gcc/g++. Whenever I try to compile a OpenC++ program, I get a lot of undefined reference messages such as:
: undefined reference to `Opencxx::TheMetaclassRegistry()'
/tmp/cc3GEgkb.o(.gnu.linkonce.t._ZN7Opencxx21MetaclassRegistrationC1EPKcPFPNS_5ClassEPNS_5PtreeES6_EPFbvEPFS6_vE+0x62): In function `Opencxx::MetaclassRegistration::MetaclassRegistration[in-charge](char const*, Opencxx::Class* (*)(Opencxx::Ptree*, Opencxx::Ptree*), bool (*)(), Opencxx::Ptree* (*)())':
: undefined reference to `Opencxx::MetaclassRegistry::Add(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Opencxx::Class* (*)(Opencxx::Ptree*, Opencxx::Ptree*), bool (*)(), Opencxx::Ptree* (*)())'
/tmp/cc3GEgkb.o(.gnu.linkonce.d._ZTI8JNIClass+0x8): undefined reference to `typeinfo for Opencxx::Class'
/tmp/cc3GEgkb.o(.gnu.linkonce.t._ZN7Opencxx5ClassC2Ev+0x8): In function `Opencxx::Class::Class[not-in-charge]()':
I think this is happening because there is a problem with linking files. Another reason I think there is a problem with linking files is because whenever I pass an object file to occ, I get the following message: "linker input file unused because linking not done". So I was wondering what can be done to allow appropriate linking. Thanks.
John Altidor
|