how to run a compiled CPP file with geany

khaled

I have recently compiled a .CPP file with Geany. The result file is a .o file. How can I run this .o program?

steeldriver

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Using system2() in R to run compiled cpp file

From Dev

How to run a .pyc (compiled python) file?

From Dev

How to run a .pyc (compiled python) file?

From Dev

How do I run a beam file compiled by Elixir or Erlang?

From Dev

How to run a TypeScript app compiled into a single file with AMD modules?

From Dev

How to set build command for "saving current file" then run "octave script" in geany text editor?

From Dev

Compiled batch file run fullscreen

From Dev

Compiled batch file run fullscreen

From Dev

How this program compiled and run successfully?

From Dev

Run compiled python .exe with a file as input

From Dev

How to Run a Java Class File from the Command Line that was Compiled by Eclipse? External Jar problems

From Dev

How can a run a compiled java or c program from a shell file from outside its directory?

From Dev

How to run PHP code in browser directly from Geany?

From Dev

geany - disable run log

From Dev

Run a compiled batch file (exe) file through a batch file

From Dev

Using the system function to run another .cpp file

From Dev

How to run a Nuitka compiled Python executable

From Dev

How do I run a compiled binary in Android?

From Dev

How do I run a class compiled with jaotc?

From Dev

How is a header file being compiled into the executable file?

From Dev

How to use NULL in a .cpp file?

From Dev

How to return the directory of the cpp file?

From Dev

In Geany, how can I scroll past the end of a file?

From Dev

How can I make a geany .tags file for a C++ library?

From Dev

How to run a .cpp in my ubuntu server?

From Dev

How to link a compiled resource (.res) file into an executable

From Dev

Compiled file tells makefile how to compile

From Dev

How to save the compiled JasperReport as a .jasper in a file

From Dev

How to set the output of a JAVAC compiled file

Related Related

  1. 1

    Using system2() in R to run compiled cpp file

  2. 2

    How to run a .pyc (compiled python) file?

  3. 3

    How to run a .pyc (compiled python) file?

  4. 4

    How do I run a beam file compiled by Elixir or Erlang?

  5. 5

    How to run a TypeScript app compiled into a single file with AMD modules?

  6. 6

    How to set build command for "saving current file" then run "octave script" in geany text editor?

  7. 7

    Compiled batch file run fullscreen

  8. 8

    Compiled batch file run fullscreen

  9. 9

    How this program compiled and run successfully?

  10. 10

    Run compiled python .exe with a file as input

  11. 11

    How to Run a Java Class File from the Command Line that was Compiled by Eclipse? External Jar problems

  12. 12

    How can a run a compiled java or c program from a shell file from outside its directory?

  13. 13

    How to run PHP code in browser directly from Geany?

  14. 14

    geany - disable run log

  15. 15

    Run a compiled batch file (exe) file through a batch file

  16. 16

    Using the system function to run another .cpp file

  17. 17

    How to run a Nuitka compiled Python executable

  18. 18

    How do I run a compiled binary in Android?

  19. 19

    How do I run a class compiled with jaotc?

  20. 20

    How is a header file being compiled into the executable file?

  21. 21

    How to use NULL in a .cpp file?

  22. 22

    How to return the directory of the cpp file?

  23. 23

    In Geany, how can I scroll past the end of a file?

  24. 24

    How can I make a geany .tags file for a C++ library?

  25. 25

    How to run a .cpp in my ubuntu server?

  26. 26

    How to link a compiled resource (.res) file into an executable

  27. 27

    Compiled file tells makefile how to compile

  28. 28

    How to save the compiled JasperReport as a .jasper in a file

  29. 29

    How to set the output of a JAVAC compiled file

HotTag

Archive