Message: GNUmakefile problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question GNUmakefile problem 

Forum: Installation and Configuration
Date: 06 Sep, 2010
From: Lukas Schulte <Lukas Schulte>

Hi all! I have a problem compiling my own program, obviously in the GNUmakefile. It gives the following error:

Using global libraries ... Linking CSim /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status

This very problem was already posted earlier (http://hypernews.slac.stanford.edu:5090/HyperNews/geant4/get/installconfig/68.html) and there seems to be a simple solution as one can see out of the comments to that posting, the solution was not posted there...

And before I forget, my GNUmakefile is adopted from the exampleN01 makefile simply by changing the name and reads as follows:

# $Id: GNUmakefile,v 1.1 1999/01/07 16:05:40 gunter Exp $
# --------------------------------------------------------------
# GNUmakefile for examples module.  Gabriele Cosmo, 06/04/98.
# --------------------------------------------------------------
#
# adopted for CSim Cherenkov Light Simulator
# Lukas Schulte, 08/2010

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

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

.PHONY: all all: lib bin

include $(G4INSTALL)/config/binmake.gmk

Would be great if anyone could help me! Lukas

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: GNUmakefile problem   (Michael H. Kelsey - 08 Sep, 2010)
 Add Message Add Message
to: "GNUmakefile problem"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]