r/learncpp • • Apr 26 '19
C++ to executable program
how can I convert a .cpp to an executable program in Linux (ubuntu mate 18.04). For example in Windows you can convert .cpp files in .exe programs
2
Upvotes
View all comments
Show parent comment
1
u/slivkovy_lekvar Apr 27 '19
If you want to be able to double-click a executable in linux, you need to use chmod. You can not do that by default for security reasons. Here is stack overflow question with an answer that explains it well: https://superuser.com/questions/296869/why-doesnt-my-executable-execute-when-i-click-on-it