Problem 381 - compiling exampleN01
Summary: compiling exampleN01
Status: RESOLVED WORKSFORME
Alias: None
Product: Examples/Basic and Novice
Classification: Unclassified
Component: N01 (show other problems)
Version: 4.0
Hardware: PC Windows
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2002-06-21 08:39 CEST by rrampini
Modified: 2007-04-08 18:40 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description rrampini 2002-06-21 08:39:59 CEST
I've set CLHEP_LIB = e:/cygwin/usr/local/lib/libCLHEP-g++.1.8.0.0.a

trying to complie the example I receive such as errors

) : error LNK2001: unresolved external symbol "public: static int __cdecl
HepRandom::createInstance(void)" (?createInstance@HepRandom@@SAHXZ)
libG4partman.a(G4DecayTable.o) : error LNK2001: unresolved external
symbol "public: static int __cdecl HepRandom::createInstance(void)" (?
createInstance@HepRandom@@SAHXZ)
libG4procman.a(

) : error LNK2001: unresolved external symbol "public: static int __cdecl
HepRandom::createInstance(void)" (?createInstance@HepRandom@@SAHXZ)
libG4procman.a(

) : error LNK2001: unresolved external symbol "public: static int __cdecl
HepRandom::createInstance(void)" (?createInstance@HepRandom@@SAHXZ)
libG4procman.a(

) : error LNK2001: unresolved external symbol "public: static int __cdecl
HepRandom::createInstance(void)" (?createInstance@HepRandom@@SAHXZ)
libG4procman.a(

) : error LNK2001: unresolved external symbol "public: static int __cdecl
HepRandom::createInstance(void)" (?createInstance@HepRandom@@SAHXZ)
libG4tracking.a(

Ń) : error LNK2001: unresolved external symbol "public: static int __cdecl
HepRandom::createInstance(void)" (?createInstance@HepRandom@@SAHXZ)
libG4procman.a(

... and much others, always LNK2001

Thanks in advance
Comment 1 Gabriele Cosmo 2002-06-26 02:06:59 CEST
The value of CLHEP_LIB you've set is wrong.
Either you set CLHEP_LIB to "libCLHEP-g++.1.8.0.0.a"
or you rename libCLHEP-g++.1.8.0.0.a to CLHEP.lib, which on Windows systems
would be more correct, and you do -not- set the variable CLHEP_LIB.