Author Topic: Compiler not producing executable file  (Read 3027 times)

Offline beastraban

  • Single posting newcomer
  • *
  • Posts: 6
Compiler not producing executable file
« 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

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

« Last Edit: June 06, 2011, 08:13:29 pm by beastraban »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Compiler not producing executable file
« Reply #1 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.