LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-18-2012, 03:44 AM   #1
adocholiday
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, 03:20 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

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


Reply


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 12:06 AM
steps to write, compile, and execute a C program in Linux environment arnoldschrewanger Programming 1 03-10-2009 10:17 AM
How to compile and execute c and c++ programs in linux sathish80 Linux - Newbie 1 01-24-2006 01:44 AM
C function to execute a program and return the output of the program ryan.n Programming 4 08-14-2004 10:11 PM
ColdFusion - Using a script to build and execute SQL query when a button is clicked Locura Programming 1 02-25-2004 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:29 AM.

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