MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000847VCMIOtherpublic2012-01-12 18:162012-05-15 17:07
ReporterWarmonger 
Assigned ToIvan 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformPCOSWindows 7OS VersionSP1
Product Version 
Target Version0.88Fixed in Version0.88 
Summary0000847: Linker error: Unresolved external symbol after revision 2507
DescriptionWell, I didn't track Json development recently, so couldn't find this one.
Additional Informationerror LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class JsonNode const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVJsonNode@@@Z) F:\Programowanie\VCMI\vcmi\client\CConfigHandler.obj
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002156)
Ivan (developer)
2012-01-12 18:48
edited on: 2012-01-12 20:09

Weird...
Comes from CConfigHandler.cpp:75
After removing all that templates I got this:
std::ostream & operator<<(std::ostream &, JsonNode const &)

Which _is_ defined in JsonNode.h:101 - JsonNode.cpp:325

(0002157)
Ivan (developer)
2012-01-12 20:17

I think I found it - add DLL_LINKAGE in front of declaration (JsonNode.h:101) -
DLL_LINKAGE std::ostream & operator<<(std::ostream &out, const JsonNode &node);
(0002158)
Warmonger (administrator)
2012-01-12 20:43

Thanks, it worked.

Fixed in r2508.
(0002439)
Ivan (developer)
2012-05-15 17:07

Closing old compile issues

- Issue History
Date Modified Username Field Change
2012-01-12 18:16 Warmonger New Issue
2012-01-12 18:16 Warmonger Status new => assigned
2012-01-12 18:16 Warmonger Assigned To => Ivan
2012-01-12 18:17 Warmonger Description Updated View Revisions
2012-01-12 18:17 Warmonger Additional Information Updated View Revisions
2012-01-12 18:48 Ivan Note Added: 0002156
2012-01-12 18:51 Ivan Note Edited: 0002156 View Revisions
2012-01-12 19:48 Ivan Note Edited: 0002156 View Revisions
2012-01-12 20:09 Ivan Note Edited: 0002156 View Revisions
2012-01-12 20:17 Ivan Note Added: 0002157
2012-01-12 20:17 Ivan Status assigned => feedback
2012-01-12 20:43 Warmonger Note Added: 0002158
2012-01-12 20:43 Warmonger Status feedback => assigned
2012-01-12 20:43 Warmonger Status assigned => resolved
2012-01-12 20:43 Warmonger Fixed in Version => 0.89
2012-01-12 20:43 Warmonger Resolution open => fixed
2012-05-15 17:07 Ivan Note Added: 0002439
2012-05-15 17:07 Ivan Status resolved => closed

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean