Message: How to link with home made .so files Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question How to link with home made .so files 

Forum: Installation and Configuration
Date: 02 Apr, 2015
From: Alain Ferragut <Alain Ferragut>

Hello, I have finally succeeded in compiling my own set of classes that I want to use with my G4 application. I have configured a cmake config file to obtain a directory where I have installed: --> Header files of my own programs in an include subdirectory, --> Shared objects files (.so)of my programs in a lib subdirectory.

Now, I want to use my classes inside a G4 application. I know how to include the header files so that the compilation of the app can find them. But I don't know how to specify the path to the lib or something is missing because the link fails by saying : "no rule to build xxx". Suppose that I have a file called libanalyse.so in my own lib subdirectory. How can I configure cmake in order that the linker will work to build the executable.

Thanks,

Alain

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

1 None: Re: How to link with home made .so files   (Ben Morgan - 13 Apr, 2015)
(_ None: Re: How to link with home made .so files   (Alain Ferragut - 13 Apr, 2015)
(_ Ok: Re: How to link with home made .so files   (Alain Ferragut - 13 Apr, 2015)
(_ None: Re: How to link with home made .so files   (Ben Morgan - 14 Apr, 2015)
 Add Message Add Message
to: "How to link with home made .so files"

 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 ]