Nguyễn Tâm Hảo
New member
How compile and run C++ program in Fedora?
Answer
GCC-C++ installation
Answer
GCC-C++ installation
- $ sudo dnf install gcc-c++ To compile and link your program you can do the same as was described in section about C:
- $ g++ -std=c++14 your_source.cpp -o your_binary. …
- $ ./your_binary. …
- $ man g++ …
- $ sudo dnf install clang. …
- $ clang++ -std=c++14 your_source.cpp -o your_binary. …
- $ man clang.