I have recently compiled a .CPP file with Geany. The result file is a .o file. How can I run this .o program?
You usually can't run a .o
(object code) file directly: it lacks the necessary library linkage.
Instead of Compile
, you need to Build
(Geany shortcut F9 rather than F8). This will produce an executable file with default name the same as your CPP file but without the .cpp
extension.
You should then be able to run it within Geany's shell using Execute
from the Geany Build
menu, or shortcut F5
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments