azraelly / ticpp

Automatically exported from code.google.com/p/ticpp
0 stars 0 forks source link

Link error when build tinyxml++ in VS2008 #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I got the source from the trunk 
Used premake4 --ticpp-shared vs2008
Opened the resulting TinyXML++.sln with VS2008
Set the preprocessor definition TIXML_USE_STL
Build
get this output 

1>------ Build started: Project: TiCPP, Configuration: Debug Win32 ------
1>Compiling...
1>ticpp.cpp
1>tinystr.cpp
1>tinyxmlerror.cpp
1>tinyxmlparser.cpp
1>tynyxml.cpp
1>Generating Code...
1>Linking...
1>tinyxmlparser.obj : error LNK2019: unresolved external symbol "public:
static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo
*,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@
V?$allocator@D@2@@2@@Z)
referenced in function "public: __thiscall std::_Locinfo::_Locinfo(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??0_Locinfo@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@
@1@@Z)
1>tynyxml.obj : error LNK2001: unresolved external symbol "public: static
void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@
V?$allocator@D@2@@2@@Z)
1>lib\ticppd.dll : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at
"file://d:\data\btj\Berthing\tinyxml\obj\Debug\BuildLog.htm"
1>TiCPP - 3 error(s), 0 warning(s)

=========================
Any help is appreciated thanks

Original issue reported on code.google.com by Bugge.T....@gmail.com on 15 Feb 2009 at 10:44

GoogleCodeExporter commented 9 years ago
It seems the static lib works. I Continue with this. Thanks

Original comment by Bugge.T....@gmail.com on 15 Feb 2009 at 10:53

GoogleCodeExporter commented 9 years ago
This is because there are no symbols exported for a dll target under vc. I 
should
probably make Premake aware of this and throw a meaningful error. So under 
VS200X dll
is not supported.

P.S. Glad that Premake4 worked for you. This was a test and it worked for me. 
Thanks
for confirming that it works.

Original comment by rpusz...@gmail.com on 15 Feb 2009 at 7:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I face this problem too..
Any tips on how do i use or link the Premake4?

Original comment by charlie....@gmail.com on 6 Sep 2013 at 2:46