Randy,

 

You don't need fgviewer for normal operation of FG. Just uncheck it in the
Configuration Manager.

 

Vivian 

 

 

 

-----Original Message-----
From: Randall Green [mailto:randall.gr...@wright.edu] 
Sent: 15 September 2009 18:29
To: FlightGear developers discussions
Subject: [Flightgear-devel] Linking newest FG/SimGear Link Errors in
newlyadded file SGText.cpp

 

 

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@Reade
rwri...@osgdb@@@Z) referenced in function
<https://webmail.wright.edu/uwc/webmail/java_script:main.compose('new',%20't
=__catch$&sgLoad3DModel_internal@@yapavn...@osg@@abv?$basic_str...@du?$char_
tra...@d@std@@v?$alloca...@d@2@@std@@pbvopti...@readerwriter@osgDB@@PAVSGPro
pertyNode@@@Z$0')>
__catch$?sgLoad3DModel_internal@@yapavn...@osg@@abv?$basic_str...@du?$char_t
ra...@d@std@@v?$alloca...@d@2@@std@@pbvopti...@readerwriter@osgDB@@PAVSGProp
ertyNode@@@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...@st
d@@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?$cha
r_tra...@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@Reade
rwri...@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@Reade
rwri...@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@Reade
rwri...@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@Reade
rwri...@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@Reade
rwri...@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@Reade
rwri...@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@Reade
rwri...@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@Reade
rwri...@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&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to