Hyper Posted August 11, 2015 Share Posted August 11, 2015 Error in line 125 (loadlib.cpp):Â FileChunk* chunk = new FileChunk{ ptr, size };Â Â Â Â Â Function:Â void ChunkedFile::parseChunks() { uint8* ptr = GetData(); while (ptr < GetData() + GetDataSize()) { u_map_fcc header = *(u_map_fcc*)ptr; uint32 size = 0; if (IsInterestingChunk(header)) { size = *(uint32*)(ptr + 4); if (size <= data_size) { std::swap(header.fcc_txt[0], header.fcc_txt[3]); std::swap(header.fcc_txt[1], header.fcc_txt[2]); FileChunk* chunk = new FileChunk{ ptr, size }; chunk->parseSubChunks(); chunks.insert({ std::string(header.fcc_txt, 4), chunk }); } } // move to next chunk ptr += size + 8; } }Â Output errors:Â 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(125): error C2143: syntax error : missing ';' before '{' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(125): error C2143: syntax error : missing ';' before '}' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(127): error C2143: syntax error : missing ')' before '{' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(127): error C2661: 'std::multimap<_Kty,_Ty>::insert' : no overloaded function takes 0 arguments 1> with 1> [ 1> _Kty=std::string, 1> _Ty=FileChunk * 1> ] 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(127): error C2143: syntax error : missing ';' before '{' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(127): error C2143: syntax error : missing ';' before '}' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(127): error C2059: syntax error : ')' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(168): error C2143: syntax error : missing ';' before '{' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(168): error C2143: syntax error : missing ';' before '}' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(170): error C2143: syntax error : missing ')' before '{' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(170): error C2661: 'std::multimap<_Kty,_Ty>::insert' : no overloaded function takes 0 arguments 1> with 1> [ 1> _Kty=std::string, 1> _Ty=FileChunk * 1> ] 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(170): error C2143: syntax error : missing ';' before '{' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(170): error C2143: syntax error : missing ';' before '}' 1>C:\SkyFireWow\SkyFire_5xx\src\tools\map_extractor\loadlib.cpp(170): error C2059: syntax error : 'Â how can i fix it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.