[Seek Help] C++ Developing
Tofloor
poster avatar
a***[email protected]
deepin
2024-08-08 05:59
Author

Hi, I am fairly new to Deepin, and I have a problem running c++ files. I used to do it on my windows using gcc/g++, but now i cannot for the life of me figure how and what to do to complie and c++ files!

Reply Favorite View the author
All Replies
Owensuwu
deepin
2024-08-08 13:40
#1

likely has gcc and g++ pre-installed. However, it's always good to check and install any missing dependencies. sudo apt install build-essential - Using a text editor like gedit, nano, or vim, create a C++ file with a .cpp extension. For example, hello.cpp. Open a terminal and navigate to the directory where your C++ file is located Then, use the g++ compiler to compile the file: g++ hello.cpp -o hello . This command compiles hello.cpp and creates an executable file named hello. finally : ./hello

Reply View the author
c***[email protected]
deepin
2024-08-30 12:32
#2
It has been deleted!
c***[email protected]
deepin
2024-08-30 12:36
#3
It has been deleted!
t***[email protected]
deepin
2024-10-01 15:20
#4
The user is banned, and the content is hidden.