Compiling IVAN.exe... /mingw/lib/libmingwex.a(pformat.o):pformat.c:(.text+0x3f4): undefined reference to `__chkstk_ms' /mingw/lib/libmingwex.a(pformat.o):pformat.c:(.text+0x66f): undefined reference to `__chkstk_ms' /mingw/lib/libmingwex.a(pformat.o):pformat.c:(.text+0xa94): undefined reference to `__chkstk_ms' /mingw/lib/libmingwex.a(pformat.o):pformat.c:(.text+0x13df): undefined reference to `__chkstk_ms' \mingw\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: /mingw/lib/libmingwex.a(pformat.o): bad reloc address 0x34 in section `.rdata' \mingw\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: final link failed: Invalid operation collect2: ld returned 1 exit status C:\MinGW\bin\mingw32-make.exe: *** [IVAN.exe] Error 1
>gcc -vin the command line.
C:\ivan\FeLib/Include/save.h:395:19: note: template argument deduction/substitution failed: C:\ivan\FeLib/Include/save.h:262:14: note: mismatched types 'fearray<type>' and 'long long int' SaveFile >> Vector[c]; ^ C:\ivan\ivanmgw.mak:27: recipe for target 'C:\ivan\FeLib/Source/hscore.o' failed mingw32-make: *** [C:\ivan\FeLib/Source/hscore.o] Error 1
template <class type> inline outputfile& operator<<(outputfile& SaveFile, const std::vector<type>& Vector) { SaveFile << ulong(Vector.size()); for(ulong c = 0; c < Vector.size(); ++c) SaveFile << Vector[c]; // error: ambiguous overload for 'operator<<' (operand types are 'outputfile' and 'const long long int') return SaveFile; } template <class type> inline inputfile& operator>>(inputfile& SaveFile, std::vector<type>& Vector) { Vector.resize(ReadType<ulong>(SaveFile), type()); for(ulong c = 0; c < Vector.size(); ++c) SaveFile >> Vector[c]; //error: no match for 'operator>>' (operand types are 'inputfile' and 'long long int') return SaveFile; }