MantisBT - VCMI
View Issue Details
0000630VCMIOtherpublic2010-11-06 19:362011-07-21 20:49
o01eg 
Tow 
highblockalways
closedfixed 
LinuxGentoo Linux amd64
 
 
0000630: Cann't compile [trunk r1850]
Graphics.cpp:704: error: no matching function for call to ‘std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)’
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/fstream:623: note: candidates are: std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/fstream:608: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/iosfwd:84: note: std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(const std::basic_ofstream<char, std::char_traits<char> >&)
This string have bug:
std::ofstream o("suspicious_" + std::string(name) + ".fnt");
It look as need .c_str() for result std::string to avoid this bug.
gcc-4.4.4
No tags attached.
related to 0000629closed Ivan Cann't compile VCMI [trunk r1834] 
Issue History
2010-11-06 19:36o01egNew Issue
2010-11-06 20:31WarmongerRelationship addedrelated to 0000629
2010-11-06 20:33WarmongerNote Added: 0001371
2010-11-07 12:19TowNote Added: 0001372
2010-11-07 12:19TowStatusnew => resolved
2010-11-07 12:19TowResolutionopen => fixed
2010-11-07 12:19TowAssigned To => Tow
2011-07-21 20:49IvanStatusresolved => closed

Notes
(0001371)
Warmonger   
2010-11-06 20:33   
I think you should ask about compilation issues directly on our board. They probably not origin from actual game flaw.
(0001372)
Tow   
2010-11-07 12:19   
r1851 fixes it. C++0x adds support for constructing ofstream from string, that's why MSVC misled me :)