I'm trying to compile and run a c++ program from Kate editor with the following build command.
konsole -e g++ -std=c++14 -Wall -c %f -o %n.o && chmod +x %n.o && ./%n.oBut it gives me the error "Exec format error". How to resolve this?
21 Answer
Lets say we have hello.cpp as our example c++ file. you can run through kate by pressing "F4" and writing the below commands.
g++ hello.cpp -o hello
./hello