Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-18-2012, 04:44 AM   #1
LQ Newbie
Registered: Feb 2012
Posts: 6

Rep: Reputation: Disabled
Geany will compile but not build or execute program

I have installed Geany on Linux Mint 12 (Lisa). For some reason I can't get the program to build or execute a program. I'm programming in C++. I know I can do it through the command line and I have been using the Kate editor up to this point, but I would like to have full functionality in Geany.

The build properties are as follows:

C++ Source Commands:
Compile: g++ -Wall -c "%f"
Build: g++ -Wall -o "%e" "%f"

Independent Commands:
Make: make
Make Custom Target: make
Make Object: make %e.o

Execute Commands:
Execute: "./%e"

When I click build I don't get an error message however when I click execute the command screen pops up but nothing happens. The header on the command screen has the title: user: sh and the only thing appearing on screen is the '$' sign.

I'm using Linux as a virtual machine on Windows 7. I'm sharing a file "C++" on the C:/ drive with the virtual machine. On the Linux machine it is stored in root/media/sf_C++

Any help would be really appreciated
Old 04-19-2012, 04:20 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 11,004

Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
opening a terminal, cd into the top source dir, and type
make clean
If it barfs, just type up arrow & return, trap the output and post the first error


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Awk: Input from one line, execute program; input from next line, execute program C.L. Programming 9 09-27-2010 01:06 AM
steps to write, compile, and execute a C program in Linux environment arnoldschrewanger Programming 1 03-10-2009 11:17 AM
How to compile and execute c and c++ programs in linux sathish80 Linux - Newbie 1 01-24-2006 02:44 AM
C function to execute a program and return the output of the program ryan.n Programming 4 08-14-2004 11:11 PM
ColdFusion - Using a script to build and execute SQL query when a button is clicked Locura Programming 1 02-25-2004 10:59 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration