+ 1

How do you run and compile on linux

6th Feb 2018, 8:18 PM
Blue Lion
Blue Lion - avatar
3 Answers
+ 2
intelliJ integrated development environment application
6th Feb 2018, 8:28 PM
Tim Millar
Tim Millar - avatar
+ 2
Just to elaborate on Martin Taylor's answer (which is very concise), regarding C/C++: Don't forget LINKING. It's technically a separate process (post compilation), but it's passed when you compile. In my example I'm linking the SFML System lib. Just include: -lsfml-system or -l<your-lib> onto Martin's example. Also, Warn All should be passed now and then: -Wall as some code won't throw errors but warnings which should be addressed. Finally, if you're using a specific standard, always include your standard, eg: -std=c++17 where c++17 may be c++11 or whatever. Usually its safe to leave the default, but if you're behind or ahead then don't forget this in relation to errors.
6th Feb 2018, 11:27 PM
non