User forums > Using Code::Blocks

Compiler not producing executable file

(1/1)

beastraban:
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

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
--- End code ---

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

--- End code ---

Jenna:
In "Project -> Properties" you have to set the appropriate directories, so C::B knows where it can find the makefile-generated executable.

Navigation

[0] Message Index

Go to full version