About 52 results
Open links in new tab
  1. What is the difference between g++ and gcc? - Stack Overflow

    Oct 5, 2008 · According to GCC's online documentation link options and how g++ is invoked, g++ is roughly equivalent to gcc -xc++ -lstdc++ -shared-libgcc (the 1st is a compiler option, the 2nd two are …

  2. c++ - Compiling .cpp files with 'g++' - Stack Overflow

    Jul 25, 2021 · g++ file.cpp -o file produces an executable file (which normally have no extensions on Linux). -o specifies the output file name. If you do just g++ file.cpp, the file will be named a.out.

  3. Which C++ standard is the default when compiling with g++?

    Jun 24, 2017 · Typing g++ --version in your command shell will reveal the version of the compiler, and from that you can infer the default standard. So you can't tell directly but you can infer it, with some …

  4. Compiling C++11 with g++ - Stack Overflow

    Apr 28, 2012 · 631 Flags (or compiler options) are nothing but ordinary command line arguments passed to the compiler executable. Assuming you are invoking g++ from the command line (terminal): $ g++ …

  5. c++ - ¿Cómo puedo solucionar el error "g++" no se reconoce como un ...

    Aug 21, 2022 · Estoy intentando crear mi primer hola mundo en C pero tengo este error: "g++" no se reconoce como un comando interno o externo Adjunto imagen del error:

  6. g++ コンパイラでライブラリのリンクを行うための -L -lオプションの …

    自分はg++を使うので g++ -Lライブラリを探すディレクトリ -lライブラリ名 -lライブラリ名 ファイル名.cpp ファイル名cpp としていますが、これが間違えているのでしょうか? 提示画像は参照先であ …

  7. c++ - G++ version and std option - Stack Overflow

    Mar 20, 2018 · I see one of my makefile and see the below command. g++-5 -std=c++11 From what I understand, the std option represents this - GCC supports different dialects of C++, corresponding to …

  8. How to use C++ 20 in g++ - Stack Overflow

    Apr 6, 2021 · g++-10 -std=c++20 main.cpp PS: if you want to go with v10 as default, then update links for gcc, g++ and other related ones, and use v9 (or whatever old you have) by full name.

  9. Compile options -g debug and -O optimization - Stack Overflow

    20 I am not quite familiar with g++ compilers, especially the options, e.g., -s, -g, and -O. Firstly, can I ask when do these options take effect? During compile or link phase? I normally put all the options I need …

  10. Is optimisation level -O3 dangerous in g++? - Stack Overflow

    Jul 18, 2018 · I have heard from various sources (though mostly from a colleague of mine), that compiling with an optimisation level of -O3 in g++ is somehow 'dangerous', and should be avoided in …