Error in the code, lesson 18 Unreal Engine C++ Developer

Hi,
i’m new here, and i’ve already encounter a problem.
this is a simple Hello, World program i’ve try to compile it and its give me this error:

Microsoft ® C/C++ Optimizing Compiler versione 19.26.28805 per x86
Copyright © Microsoft Corporation. Tutti i diritti sono riservati.

triplex.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\ostream(747): warning C4530: utilizzato gestore eccezioni C++, ma la semantica di rimozione non è abilitata. Specificare /EHsc
triplex.cpp(5): note: vedere il riferimento all’istanza ‘std::basic_ostream<char,std::char_traits> &std::operator <<<std::char_traits>(std::basic_ostream<char,std::char_traits> &,const char *)’ della funzione modello di cui è in corso la compilazione
Microsoft ® Incremental Linker Version 14.26.28805.0
Copyright © Microsoft Corporation. All rights reserved.

/out:triplex.exe
triplex.obj

how can i fix this?

sorry for potato english :sweat_smile: :sweat_smile:

oh… i’ve realize now that the message is in italian… sorry again.

here the translation:

C: \ Program Files (x86) \ Microsoft Visual Studio \ 2019 \ Community \ VC \ Tools \ MSVC \ 14.26.28801 \ include \ ostream (747): warning C4530: used C ++ exception handler, but removal semantics are not enabled . Specify / EHsc
triplex.cpp (5): notes: see the reference to the instance 'std :: basic_ostream <char, std :: char_traits> & std :: operator <<< std :: char_traits> (std :: basic_ostream <char, std: : char_traits> &, const char *) 'of the model function which is being compiled
Microsoft ® Incremental Linker Version 14.26.28805.0
Copyright © Microsoft Corporation. All rights reserved.

There’s no error there, it’s just a warning. Though you can solve it by compiling with /EHsc

cl triplex.cpp /EHsc
2 Likes

ok, thanks, i will try it.
thank you

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms