Message: Re [ 2 ]: Norman Graf's restored message: How can I compile... Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re [ 2 ]: Norman Graf's restored message: How can I compile... 

Keywords: compile command line syntax
Forum: Documentation and Examples
Re: Question How can I compile my programs using GEANT4 libraries from command line? (galitsyn)
Re: None Re [ 1 ]: Norman Graf's restored message: How can I compile...
Date: 04 Oct, 2004
From: <vadim.g@mail.ru>

Thanks to Morgan.

Well, if I want to compile my simple c++ program like that:

#include <G4RunManager.hh>
#include <G4UImanager.hh>

int
main( int argc, char * argv[] )
{ G4RunManager * runManager = new G4RunManager;
  printf( "Hello world!\n" );
  delete runManager;
  return 0;
}

I must to type next in my command line:

bash-2.05b$ gcc -o test test.cc -L/opt/geant-4.6.1/lib -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4materials -lG4graphics_reps -lG4intercoms -lG4global /usr/lib/libCLHEP-g++.1.8.2.0.a

Why so much dependences in libs? Why these libs are not independent?

Thanx.

P.S. 2Morgan: Sorry, I was fully delette your messege from this board :(

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

 Add Message Add Message
to: "Re [ 2 ]: Norman Graf's restored message: How can I compile..."

 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 ]