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>

Hi,

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 DetectorConstruction.cc as follows:

// Sensitive detector

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

	G4SDManager* SDman = G4SDManager::GetSDMpointer();

	SDman->AddNewDetector(He3);
	logicHe3Layer->SetSensitiveDetector(He3);

Any insight would be appreciated.

Thanks.

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2014/03/26/10.58-94-He3SD.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2014/03/26/10.58-46665-He3SD.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2014/03/26/10.58-11742-He3Hit.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2014/03/26/10.58-96689-He3Hit.hh

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