Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: beastraban on June 06, 2011, 03:16:59 pm

Title: Compiler not producing executable file
Post by: beastraban on June 06, 2011, 03:16:59 pm
Hi,

system settings:
cygwin Gcc compiler,
build project/target: $make -f  $makefile all
compiler set up according to http://wiki.codeblocks.org/index.php?title=Installing_Cygwin_Compiler (http://wiki.codeblocks.org/index.php?title=Installing_Cygwin_Compiler)

this is the Makefile:
Code
# $Id: GNUmakefile,v 1.1 1999-01-07 16:05:40 gunter Exp $
# --------------------------------------------------------------
# GNUmakefile for examples module.  Gabriele Cosmo, 06/04/98.
# --------------------------------------------------------------

name := exampleN01
G4TARGET := $(name)
G4EXLIB := true

ifndef G4INSTALL
  G4INSTALL = ../../..
endif

.PHONY: all
all: lib bin

include $(G4INSTALL)/config/binmake.gmk

I BUILD the code and everything is just fine, but when trying to run
it states "It seems this project has not been built yet..."
and builds it again instead of running it.
plus it doesn't run it even after building it instead of running it...

I'm sorry if there is missing info/irrelevant info -
I am a new to all this....

Edit: os win-vista32bit
cb version 10.05

thanks

Edit: Build log:

Code

Running command: make.exe -f GNUmakefile
Using global libraries ...
Linking exampleN01
... Done!
Process terminated with status 0 (0 minutes, 3 seconds)
0 errors, 0 warnings

Title: Re: Compiler not producing executable file
Post by: Jenna on June 07, 2011, 05:26:45 pm
In "Project -> Properties" you have to set the appropriate directories, so C::B knows where it can find the makefile-generated executable.