Jump to content

Internal error during IMAGE::BuildImage


Go to solution Solved by avertuss,

Recommended Posts

Hi. I needed format my pc. I installed vs2019 to compile my binary and i have errors:

16>   Creating library D:\Metin\src\bin\binary\Metin2Release.lib and object D:\Metin\src\bin\binary\Metin2Release.exp
16>Generating code
16>LINK : fatal error C1001: An internal error has occurred in the compiler.
16>(compiler file 'd:\agent\_work\6\s\src\vctools\Compiler\Utc\src\p2\main.c', line 166)
16> To work around this problem, try simplifying or changing the program near the locations listed above.
16>Please choose the Technical Support command on the Visual C++
16> Help menu, or open the Technical Support help file for more information
16>  link!InvokeCompilerPass()+0x2e4f2
16>  link!InvokeCompilerPass()+0x21ee0
16>  link!InvokeCompilerPass()+0x21e01
16>  link!InvokeCompilerPass()+0x2d584
16>
16>LINK : fatal error C1001: An internal error has occurred in the compiler.
16>(compiler file 'd:\agent\_work\6\s\src\vctools\Compiler\Utc\src\p2\main.c', line 166)
16> To work around this problem, try simplifying or changing the program near the locations listed above.
16>Please choose the Technical Support command on the Visual C++
16> Help menu, or open the Technical Support help file for more information
16>  link!InvokeCompilerPass()+0x2e4f2
16>  link!InvokeCompilerPass()+0x21ee0
16>  link!InvokeCompilerPass()+0x21e01
16>  link!InvokeCompilerPass()+0x2d584
16>
16>
16>LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage
16>
16>  Version 14.24.28314.0
16>
16>  ExceptionCode            = C0000005
16>  ExceptionFlags           = 00000000
16>  ExceptionAddress         = 5CBE3EAE (5C720000) "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\c2.dll"
16>  NumberParameters         = 00000002
16>  ExceptionInformation[ 0] = 00000000
16>  ExceptionInformation[ 1] = 19AEA5C1
16>
16>CONTEXT:
16>  Eax    = 00000000  Esp    = 012FE8C8
16>  Ebx    = 19AEA5C1  Ebp    = 012FE8D8
16>  Ecx    = 00001505  Esi    = 00000000
16>  Edx    = 00000000  Edi    = 00000000
16>  Eip    = 5CBE3EAE  EFlags = 00010246
16>  SegCs  = 00000023  SegDs  = 0000002B
16>  SegSs  = 0000002B  SegEs  = 0000002B
16>  SegFs  = 00000053  SegGs  = 0000002B
16>  Dr0    = 00000000  Dr3    = 00000000
16>  Dr1    = 00000000  Dr6    = 00000000
16>  Dr2    = 00000000  Dr7    = 00000000
16>Done building project "UserInterface.vcxproj" -- FAILED.
========== Rebuild All: 15 succeeded, 1 failed, 0 skipped ==========

Any ideas? Maybe i didn't installed all features that i need to compile bin? If i remember always in vs default features was clicked now i had to choose manually them all. 

Link to comment
Share on other sites

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution
6 minutes ago, joshi said:

Yes cuz first remove extern and if u haven't extern in the solution then add extern.

I didn't had extern folders linked in vc++ directories. I just added them now, try rebuild solution and the same error. Idk why if before format source was good. Maybe something missing in vs or idk. 

 

 

///FIXED

 

JUST ADDED legacy_stdio_definitions.lib in linker option. xD

Edited by avertuss
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.