Score:0

Error C++ compiling Ubuntu 20.04 LTS

kr flag
c++: error: unrecognized command line option ‘-GR’; did you mean ‘-R’?
c++: error: unrecognized command line option ‘-EHsc’
c++: error: unrecognized command line option ‘-Zm200’
c++: error: unrecognized command line option ‘-nologo’
c++: error: unrecognized command line option ‘-std:c++17’; did you mean ‘-std=c++17’?

From Comments:


c++: error: unrecognized command line option ‘-GR’; did you mean ‘-R’?
c++: error: unrecognized command line option ‘-EHsc’
c++: error: unrecognized command line option ‘-Zm200’ c++: error: unrecognized command line option ‘-nologo’
c++: error: unrecognized command line option ‘-std:c++17’; did you mean ‘-std=c++17’?
make[2]: *** [CMakeFiles/exampleED.dir/build.make:63: CMakeFiles/exampleED.dir/exampleED.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:104: CMakeFiles/exampleED.dir/all] 
Error 2 make: *** [Makefile:130: all] Error 2 – 
emil@DESKTOP-MTLDFE4:~/projects/session2_solution/build$ cmake . -- Configuring done --
Generating done -- Build files have been written to: /home/emil/projects/session2_solution/build emil@DESKTOP-MTLDFE4:~/projects/session2_solution/build
$ make [ 16%] Building CXX object CMakeFiles/exampleED.dir/exampleED.cc.o c++:
error: unrecognized command line option ‘-GR’; did you mean ‘-R’? c++: 
error: unrecognized command line option ‘-EHsc’ c++:
error: unrecognized command line option ‘-Zm200’ c++:
error: unrecognized command line option ‘-nologo’ –
andrew.46 avatar
in flag
@EmilMemmedzade Your question is lacking some important details. For example: 1. What application are you attempting to compile? 2. What steps have you taken to compile it? Please place this information as *an edit within your question* and then wait *patiently* for a response...
hr flag
It looks like you're trying to pass [MSVC compiler options](https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-alphabetically?view=msvc-170) to the GNU `g++` compiler
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.