• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[C++] fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

pippo

New Member
Joined
May 3, 2011
Messages
46
Reaction score
0
As explained in the title i got a problem with compiling and get a message
Code:
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
1>  Generating code
1>  Finished generating code
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
 
Last edited:
Here we are :)
In luascript.cpp AND in scriptmanager.cpp:
Find:
Code:
std::string s = it->leaf();

Replace with:

Code:
boost::filesystem::path p = it->path();
std::string s = p.filename().string();

anymore errors or if it works reply back :)
 
Here we are :)
In luascript.cpp AND in scriptmanager.cpp:
Find:
Code:
std::string s = it->leaf();

Replace with:

Code:
boost::filesystem::path p = it->path();
std::string s = p.filename().string();

anymore errors or if it works reply back :)

There is no std::string s = it->leaf(); in both cpp files but my error has something to do with this line std::string s = BOOST_DIR_ITER_FILENAME(it);
 
problem fixed but got new error
Code:
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
1>LINK : fatal error LNK1181: cannot open input file 'libboost_regex-vc100-mt-1_44.lib'
<_<
 
Back
Top