avertuss 48 Posted March 25, 2020 Share Posted March 25, 2020 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 More sharing options...
joshi 34 Posted March 25, 2020 Share Posted March 25, 2020 First try rebuild if not okay then Switch the Project->Properties->C/C++->Optimization->Whole Program Optimization to No instead of Yes. Link to comment Share on other sites More sharing options...
avertuss 48 Posted March 25, 2020 Author Share Posted March 25, 2020 (edited) 1 hour ago, joshi said: First try rebuild if not okay then Switch the Project->Properties->C/C++->Optimization->Whole Program Optimization to No instead of Yes. idk why, before format was ok. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
joshi 34 Posted March 25, 2020 Share Posted March 25, 2020 External not working | Try add again include and lib files. Link to comment Share on other sites More sharing options...
avertuss 48 Posted March 25, 2020 Author Share Posted March 25, 2020 (edited) 3 hours ago, joshi said: External not working | Try add again include and lib files. idk, still the same error. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
joshi 34 Posted March 25, 2020 Share Posted March 25, 2020 Yes cuz first remove extern and if u haven't extern in the solution then add extern. Link to comment Share on other sites More sharing options...
Solution avertuss 48 Posted March 25, 2020 Author Solution Share Posted March 25, 2020 (edited) 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 March 25, 2020 by avertuss Link to comment Share on other sites More sharing options...
joshi 34 Posted March 25, 2020 Share Posted March 25, 2020 The folder patch is good to extern? 1 Link to comment Share on other sites More sharing options...
avertuss 48 Posted March 25, 2020 Author Share Posted March 25, 2020 2 minutes ago, joshi said: The folder patch is good to extern? Fixed, JUST ADDED legacy_stdio_definitions.lib in linker option. xD Link to comment Share on other sites More sharing options...
joshi 34 Posted March 25, 2020 Share Posted March 25, 2020 U have space or other special character in folder path? Okay i'm glad Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now