Message: Re: Compiling application doesn't build executable Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Compiling application doesn't build executable 

Forum: Installation and Configuration
Re: None Compiling application doesn't build executable (Bethany)
Re: None Re: Compiling application doesn't build executable (Ben Morgan)
Date: 04 Oct, 2014
From: Ben Pietras <Ben Pietras>

Hi

My issue was that after compling to 100% I got the linking error

undefined reference to `TVersionCheck::TVersionCheck(int)' (etc)

The solution was to add

if(useROOT)
	EXECUTE_PROCESS(COMMAND root-config --cflags OUTPUT_VARIABLE ROOT_CXX_FLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ROOT_CXX_FLAGS}")
	EXECUTE_PROCESS(COMMAND root-config --libs  OUTPUT_VARIABLE ROOT_LIBRARIES OUTPUT_STRIP_TRAILING_WHITESPACE)
endif(useROOT) 

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2014/10/04/12.24-96044-CMakeLists.txt

Cheers :)

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

1 None: Re: Compiling application doesn't build executable   (Ben Pietras - 04 Oct, 2014)
(_ None: Re: Compiling application doesn't build executable   (Ben Pietras - 04 Oct, 2014)
 Add Message Add Message
to: "Re: Compiling application doesn't build executable"

 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 ]