Message: LNK2019 error from sensitive detector Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None LNK2019 error from sensitive detector 

Forum: Biasing and Scoring
Date: 26 Mar, 2014
From: RY <RY>


I am getting a strange error that I don't understand when building my application in VC++10:

DetectorConstruction.obj : error LNK2019: unresolved external symbol "public: __thiscall He3SD::He3SD(class G4String)" (??0He3SD@@QAE@VG4String@@@Z) referenced in function "public: virtual class G4VPhysicalVolume * __thiscall DetectorConstruction::Construct(void)" (?Construct@DetectorConstruction@@UAEPAVG4VPhysicalVolume@@XZ) 2>C:\g4work\DDAA-build\Release\DDAA.exe : fatal error LNK1120: 1 unresolved externals

I've attached the header and source files for my sensitive detector. It is implemented in as follows:

// Sensitive detector

	He3SD* He3 = new He3SD("He3SD");

	G4SDManager* SDman = G4SDManager::GetSDMpointer();


Any insight would be appreciated.



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

1 None: Re: LNK2019 error from sensitive detector   (Tsukasa Aso - 28 Mar, 2014)
 Add Message Add Message
to: "LNK2019 error from sensitive detector"

 Subscribe Subscribe

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