I am linking the latest versions of FG/Simgear and I got 3 unresolved external
symbols:
FGGyro.cpp, AIGroundVehicle.cpp, and SGText.cpp. The SGText error message is:
> > > 4>simgear_d.lib(SGReaderWriterXML.obj) : error LNK2019: unresolved
> > > external symbol "public: static class osg::Node * __cdecl
> > > SGText::appendText(class SGPropertyNode const *,class SGPropertyNode
> > > *,class osgDB::ReaderWriter::Options const *)"
> > > (?appendt...@sgtext@@sapavn...@osg@@PBVSGPropertyNode@@p...@pbvoptions@readerwri...@osgdb@@@Z)
> > > referenced in function
> > > __catch$?sgLoad3DModel_internal@@yapavn...@osg@@abv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@pbvopti...@readerwriter@osgDB@@PAVSGPropertyNode@@@Z$0
Vivian said that these 3 files were
recently added but I needed to include them in the projects. So I opened project
FlightGear and clicked on Lib_JSBSim, models, flight_control and added existing
items
FGGyro.cpp/hxx. Then I clicked on Lib_AIModel and added existing items
AIGroundVehicle.cpp/hxx. Then I clicked on SimGear, Lib_sgmodel and added
existing items SGText.cpp/hxx. The 3 error messages went away but then I get 33
unresolved external references when linking fgviewer, all involving SGText. I
think it
has something to do with OSG, but I have OpenSceneGraph\lib under
Linker-Additional
Library Directories. (I left out some of the messages because this email would
otherwise be
too large to send).
Thanks,
Randy Green
8>------ Build started: Project: fgviewer, Configuration: Debug Win32 ------
8>Linking...
8>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other
libs; use /NODEFAULTLIB:library
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall osgText::TextBase::update(void)"
(__imp_?upd...@textbase@osgText@@QAEXXZ) referenced in function "private:
virtual void __thiscall SGText::UpdateCallback::operator()(class osg::Node
*,class osg::NodeVisitor *)"
(??rupdatecallb...@sgtext@@eaexpavn...@osg@@pavnodevisi...@3@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall osgText::TextBase::setText(class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
> const &)"
(__imp_?sett...@textbase@osgText@@qaexabv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@@Z)
referenced in function "private: virtual void __thiscall
SGText::UpdateCallback::operator()(class osg::Node *,class osg::NodeVisitor *)"
(??rupdatecallb...@sgtext@@eaexpavn...@osg@@pavnodevisi...@3@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __thiscall
osgText::String::createUTF8EncodedString(void)const "
(__imp_?createutf8encodedstr...@string@osgText@@qbe?av?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@XZ)
referenced in function "private: virtual void __thiscall
SGText::UpdateCallback::operator()(class osg::Node *,class osg::NodeVisitor *)"
(??rupdatecallb...@sgtext@@eaexpavn...@osg@@pavnodevisi...@3@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class osgText::String & __thiscall
osgText::TextBase::getText(void)"
(__imp_?gett...@textbase@osgText@@qaeaavstr...@2@XZ) referenced in function
"private: virtual void __thiscall SGText::UpdateCallback::operator()(class
osg::Node *,class osg::NodeVisitor *)"
(??rupdatecallb...@sgtext@@eaexpavn...@osg@@pavnodevisi...@3@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
osgText::TextBase::setMaximumHeight(float)"
(__imp_?setmaximumhei...@textbase@osgText@@qa...@z) referenced in function
"public: static class osg::Node * __cdecl SGText::appendText(class
SGPropertyNode const *,class SGPropertyNode *,class
osgDB::ReaderWriter::Options const *)"
(?appendt...@sgtext@@sapavn...@osg@@PBVSGPropertyNode@@p...@pbvoptions@readerwri...@osgdb@@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
osgText::TextBase::setMaximumWidth(float)"
(__imp_?setmaximumwi...@textbase@osgText@@qa...@z) referenced in function
"public: static class osg::Node * __cdecl SGText::appendText(class
SGPropertyNode const *,class SGPropertyNode *,class
osgDB::ReaderWriter::Options const *)"
(?appendt...@sgtext@@sapavn...@osg@@PBVSGPropertyNode@@p...@pbvoptions@readerwri...@osgdb@@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
osgText::TextBase::setLayout(enum osgText::TextBase::Layout)"
(__imp_?setlay...@textbase@osgText@@qaexw4lay...@12@@Z) referenced in function
"public: static class osg::Node * __cdecl SGText::appendText(class
SGPropertyNode const *,class SGPropertyNode *,class
osgDB::ReaderWriter::Options const *)"
(?appendt...@sgtext@@sapavn...@osg@@PBVSGPropertyNode@@p...@pbvoptions@readerwri...@osgdb@@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
osgText::TextBase::setAlignment(enum osgText::TextBase::AlignmentType)"
(__imp_?setalignm...@textbase@osgText@@qaexw4alignmentt...@12@@Z) referenced in
function "public: static class osg::Node * __cdecl SGText::appendText(class
SGPropertyNode const *,class SGPropertyNode *,class
osgDB::ReaderWriter::Options const *)"
(?appendt...@sgtext@@sapavn...@osg@@PBVSGPropertyNode@@p...@pbvoptions@readerwri...@osgdb@@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
osgText::TextBase::setDrawMode(unsigned int)"
(__imp_?setdrawm...@textbase@osgText@@qa...@z) referenced in function "public:
static class osg::Node * __cdecl SGText::appendText(class SGPropertyNode const
*,class SGPropertyNode *,class osgDB::ReaderWriter::Options const *)"
(?appendt...@sgtext@@sapavn...@osg@@PBVSGPropertyNode@@p...@pbvoptions@readerwri...@osgdb@@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
osgText::TextBase::setAxisAlignment(enum osgText::TextBase::AxisAlignment)"
(__imp_?setaxisalignm...@textbase@osgText@@qaexw4axisalignm...@12@@Z)
referenced in function "public: static class osg::Node * __cdecl
SGText::appendText(class SGPropertyNode const *,class SGPropertyNode *,class
osgDB::ReaderWriter::Options const *)"
(?appendt...@sgtext@@sapavn...@osg@@PBVSGPropertyNode@@p...@pbvoptions@readerwri...@osgdb@@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
osgText::TextBase::setKerningType(enum osgText::KerningType)"
(__imp_?setkerningt...@textbase@osgText@@qaexw4kerningt...@2@@Z) referenced in
function "public: static class osg::Node * __cdecl SGText::appendText(class
SGPropertyNode const *,class SGPropertyNode *,class
osgDB::ReaderWriter::Options const *)"
(?appendt...@sgtext@@sapavn...@osg@@PBVSGPropertyNode@@p...@pbvoptions@readerwri...@osgdb@@@Z)
8>simgear_d.lib(SGText.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
osgText::TextBase::setFontResolution(unsigned int,unsigned int)"
(__imp_?setfontresolut...@textbase@osgText@@qae...@z) referenced in function
"public: static class osg::Node * __cdecl SGText::appendText(class
SGPropertyNode const *,class SGPropertyNode *,class
osgDB::ReaderWriter::Options const *)"
(?appendt...@sgtext@@sapavn...@osg@@PBVSGPropertyNode@@p...@pbvoptions@readerwri...@osgdb@@@Z)
(Several I omitted to keep this message within limits)
8>C:\FG2\FlightGear\projects\VC90\Win32\Debug\fgviewer.exe : fatal error
LNK1120: 33 unresolved externals
8>Build log was saved at
"file://c:\FG2\FlightGear\projects\VC90\fgviewer\Win32\Debug\BuildLog.htm"
8>fgviewer - 34 error(s), 1 warning(s)
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel