Message: Error making example N01, Cannot open CLHEP.lib Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Error making example N01, Cannot open CLHEP.lib 

Forum: Documentation and Examples
Date: 30 Jan, 2009
From: <jdswado@yahoo.com>

Hello,

I'm trying to run exampleN01 but when I do I continously get the following error: LINK: fatal error LNK1181: cannot open input file 'CLHEP.lib'

Here's the error in context:

Open a new Cygwin Window:

Setting environment for using Microsoft Visual Studio 2005 x86 tools.

Attempting to detect a Microsoft Visual Studio installation

Targeting Windows XP 32 DEBUG

Ryan Manger@nola ~ $ export G4WORKDIR=c:/g4work

Ryan Manger@nola ~ $ source c:/Geant4/geant4_9_2/env.sh On this machine the G4SYSTEM=WIN32-VC On this machine the G4INSTALL=c:/Geant4/geant4_9_2 On this machine the G4LIB=c:/Geant4/geant4_9_2/lib On this machine the G4LEVELGAMMADATA=1/PhotonEvaportaion2.0 On this machine the G4RADIOACTIVEDATA=1/RadioactiveDecay3.2 On this machine the G4LEDATA=1/G4EMLOW6.2 On this machine the G4NEUTRONHPDATA=c:/Geant4/geant4_9_0/data/G4NDL3.11 On this machine the CLHEP_BASE_DIR=c:/CLHEP On this machine the CLHEP_INCLUDE_DIR=c:/CLHEP/include On this machine the CLHEP_LIB_DIR=c:/CLHEP/lib On this machine the CLHEP_LIB=CLHEP.lib On this machine the G4UI_BUILD_WIN32_SESSION=1 On this machine the G4UI_USE_WIN32=1 On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=1 On this machine the G4VIS_USE_OPENGLWIN32=1 On this machine the XMFLAGS= On this machine the XMLIBS= On this machine the XMFLAGS= On this machine the XAWFLAGS= On this machine the XAWLIBS= On this machine the G4LIB_BUILD_STATIC=1 On this machine the G4LIB_USE_GRANULAR=1

Ryan Manger@nola ~ $ cd $G4WORKDIR/N01

Ryan Manger@nola ~ $ make Making dependency for file exampleN01.cc ... Making dependency for file src/ExN01PrimaryGeneratorAction.cc ... Making dependency for file src/ExN01PhysicsList.cc ... Making dependency for file src/ExN01PhysicsList.cc ... Making dependency for file src/ExN01DetectorConstruction.cc ... Compiling ExN01DetectorConstruction.cc ... ExN01DetectorConstruction.cc Compiling ExN01PhysicsList.cc ... ExN01PhysicsList.cc Compiling ExN01PrimaryGeneratorAction.cc ... ExN01PrimaryGeneratorAction.cc Creating/replacing object files in c:/g4work/tmp/WIN32-VC/exampleN01/libexampleN01.a ... Microsoft <R> Library Manager Version 8.00.50727.762 Copyright <C> Microsoft Corporation. All rights reserved.

Compiling exampleN01.cc ... exampleN01.cc Using granular libraries ... Linking exampleN01 ... LINK: fatal error LNK1181: cannot open input file 'CLHEP.lib' make: ***[c:/g4work/bin/WIN32-VC/exampleN01] Error 2

Ryan Manger@nola ~ $

That's as far as it will run. I've checked the forums and searched online and there seems to be some connection possible to Microsoft SDK but I can't get any clear answers about how to fix this. If anyone has any ideas please let me know and many thanks.

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

1 None: Re: Error making example N01, Cannot open CLHEP.lib   (Paul Nicholas Colin Gloster - 30 Jan, 2009)
 Add Message Add Message
to: "Error making example N01, Cannot open CLHEP.lib"

 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 ]