Undefined symbol: _ZN13TVersionCheckC1Ei

Hello,

I am making a Geant4 program that will export its results into ROOT format, and I am having trouble with an error that I can’t figure out how to fix.

I’ve narrowed the problem down to any of the five lines of code in my program, which are in the header file of my class that effectively saves the Geant4 results in ROOT format. Here are the lines:

#include “TROOT.h”
#include “TFile.h”
#include “TH1.h”
#include “TF1.h”
#include “TSystem.h”

Each one of these (individually) gives me the error (if I comment out all except any one of them I still get the error):

./my_program: symbol lookup error: ~/geant4/tmp/Linux-g++/my_program/libmy_program.so: undefined symbol: _ZN13TVersionCheckC1Ei

The program (a test program right now) is in the my_program directory and is called my_program.
I am running Ubuntu 11.04, and I installed ROOT and Geant4 a few weeks ago and both have been working correctly with the exception of this.

I tried googling it of course and found [url]“symbol lookup error” when running root 5.20 but I either couldn’t figure it out or it didn’t work.

Let me know if you need any more info.

Thanks in advance!
Jason

1 Like

Hi,

I don’t know what’s wrong, but I may be able to help a little bit:

cplager@cmslpc08> echo _ZN13TVersionCheckC1Ei | c++filt
TVersionCheck::TVersionCheck(int)

That’s what it’s missing…

Cheers,
Charles

Hmm, I don’t know, I found that file, TVersionCheck.h, in my ~/root/include directory. So it should be there and it should be finding it since I’m assuming it finds everything else. Is that what you meant by what’s missing?

Update:
So when I looked in the TVersionCheck.h file, it had the following class:

class TVersionCheck {
public:
TVersionCheck(int versionCode); // implemented in TSystem.cxx
};

but I couldn’t find TSystem.cxx on my system. Am I supposed to? I do have TSystem.h but it doesn’t contain a function called TVersionCheck. I did find the source file for TSystem.cxx online (http://www.slac.stanford.edu/comp/unix/package/cernroot/30006/src/TSystem.cxx.html) and it doesn’t have a TVersionCheck function either so I don’t know when they mean by "implemented in TSystem.cxx."
However, in the TSystem.cxx there is a comment that reads:

// The user may sometimes try to compile a script before it has loaded all the
// needed shared libraries. In this case we want to be helpfull and output a
// list of the unresolved symbols. So if the loading of the created shared
// library fails, we will try to build a executable that contains the
// script. The linker should then output a list of missing symbols.

So did I not load a shared library??? If that’s it, how do I fix that?

Hi,

Was you probably linked against libCore.so? Were your dictionaries created and compiled against the same version of ROOT as the one listed first in LD_LIBRARY_PATH?

Philippe.

I feel like you have probably found the problem, I’m just not sure how to check if the versions are the same. When I run ROOT the header stuff that always comes up says Version 5.28/00c, but how do I check if this is the same as the one listed first in LD_LIBRARY_PATH?

I believe I am linked against libCore.so, I have the following lines in make file:
CPPFLAGS += -I$(ROOTSYS)/include
EXTRALIBS := -L$(ROOTSYS)/lib -lCore -lTree -lCint -lReflex -lCintex -lRIO -lHist

ARCH := $(shell root-config --arch)
#include Makefile.arch
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
ROOTGLIBS := $(shell root-config --glibs)

CPPFLAGS += $(ROOTCFLAGS)
EXTRALIBS += $(ROOTLIBS)
EXTRALIBS += $(ROOTGLIBS)

So does that second line mean I am linked against libCore.so?

(Some of that stuff might be redundant, I am not sure, but I was trying to get things to work and copied some stuff from someone I work with who got it to work.)

Hi,

So does that second line mean I am linked against libCore.so?

Assuming that the makefile uses those variable on the link line.

Look at the value of $ROOTSYS and $LD_LIBRARY_PATH …

Philippe.

echo $ROOTSYS returned:
/home/jason/root

and

echo $LD_LIBRARY_PATH returned:
/home/jason/root/lib:

In my .bashrc I have the following three lines:
export ROOTSYS=/home/jason/root
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH

Hi,

Okay, that seems consistent. Did you recently changed version of ROOT and/or compiler? If you did, did you recompile from scratch? Can you send the result of ‘ldd your_program’ ?

Philippe.

No, I haven’t changed versions of ROOT or my compiler. It look me a bit to get ROOT installed but it should be correct, it has worked just fine over the past couple weeks. Here is the result of my ‘ldd my_program’:

linux-vdso.so.1 =>  (0x00007fffb84eb000)
libmy_program.so => /home/jason/geant4/tmp/Linux-g++/my_program/libmy_program.so (0x00007f597c814000)
libG4Tree.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4Tree.so (0x00007f597c602000)
libG4FR.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4FR.so (0x00007f597c3f0000)
libG4GMocren.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4GMocren.so (0x00007f597c1ae000)
libG4visHepRep.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4visHepRep.so (0x00007f597bf25000)
libG4RayTracer.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4RayTracer.so (0x00007f597bd08000)
libG4VRML.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4VRML.so (0x00007f597baf3000)
libG4OpenGL.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4OpenGL.so (0x00007f597b8b8000)
libG4gl2ps.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4gl2ps.so (0x00007f597b6a4000)
libG4vis_management.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4vis_management.so (0x00007f597b3ef000)
libG4modeling.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4modeling.so (0x00007f597b12e000)
libG4interfaces.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4interfaces.so (0x00007f597aef2000)
libG4persistency.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4persistency.so (0x00007f597ac4b000)
libG4error_propagation.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4error_propagation.so (0x00007f597aa11000)
libG4readout.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4readout.so (0x00007f597a808000)
libG4physicslists.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4physicslists.so (0x00007f597a514000)
libG4run.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4run.so (0x00007f597a2cf000)
libG4event.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4event.so (0x00007f597a079000)
libG4tracking.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4tracking.so (0x00007f5979e30000)
libG4parmodels.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4parmodels.so (0x00007f5979c1a000)
libG4processes.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4processes.so (0x00007f59784c7000)
libG4digits_hits.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4digits_hits.so (0x00007f597822e000)
libG4track.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4track.so (0x00007f5978017000)
libG4particles.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4particles.so (0x00007f5977d1b000)
libG4geometry.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4geometry.so (0x00007f5977891000)
libG4materials.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4materials.so (0x00007f5977605000)
libG4graphics_reps.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4graphics_reps.so (0x00007f59773b9000)
libG4intercoms.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4intercoms.so (0x00007f5977170000)
libG4global.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4global.so (0x00007f5976f2f000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007f5976c9e000)
libGL.so.1 => /usr/lib/mesa/libGL.so.1 (0x00007f5976a21000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0x00007f5976807000)
libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f59765a1000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f597638f000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f5976054000)
libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f5975e44000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f5975c3c000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f5975a20000)
libCLHEP-2.1.0.1.so => /home/jason/CLHEP/lib/libCLHEP-2.1.0.1.so (0x00007f59756d3000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f59754bb000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f59751b4000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5974f2f000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5974d19000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5974984000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5974766000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f5974562000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f597435b000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f5974155000)
libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f5973f4a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5973d45000)
/lib64/ld-linux-x86-64.so.2 (0x00007f597ca25000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f5973b29000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f5973923000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f597371b000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f5973517000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f5973311000)

Hi,

ldd claims that your program is not linked against any ROOT libraries (i.e there must be a bug in the Makefile where the LIBS variables are not used).

Cheers,
Philippe.

Okay, I thought I was getting somewhere but maybe not, although I did find out something. In my makefile, i have the line:

EXTRALIBS := -L$(ROOTSYS)/lib -lCore -lTree -lCint -lReflex -lCintex -lRIO -lHist

and I can find a .rootmap file that corresponds to the .so file for each of the except the -lCint and -lReflex ones, does that matter? If I try to compile with just -lCint and/or -lReflex I get a compile error:

Linking my_program
/home/jason/geant4/tmp/Linux-g++/my_program/libmy_program.so: undefined reference to `TVersionCheck::TVersionCheck(int)'
collect2: ld returned 1 exit status
make: *** [/home/jason/geant4/bin/Linux-g++/my_program] Error 1

And that TVersionCheck was something I had seen before (see cplager’s reply). So I ran the below command:

jason@jason-Studio-XPS-1640:~/geant4/geant4.9.4.p01/my_program$ ld my_program
ld: error in my_program(.eh_frame); no .eh_frame_hdr table will be created.

But I don’t know what that means :confused:

Even so, if I compile with the full list of arguments (-lCore -lTree -lCint -lReflex -lCintex -lRIO -lHist) then it does compile, but I still get the same run-error: undefined symbol: _ZN13TVersionCheckC1Ei.

So maybe it will help if I just post my GMUmakefile??? Anyways, here it is:

name := my_program
G4TARGET := $(name)
G4EXLIB := true

ifndef G4INSTALL
G4INSTALL = …/…/…
endif

.PHONY: all
all: lib bin

CPPFLAGS += -I$(ROOTSYS)/include
EXTRALIBS := -L$(ROOTSYS)/lib -lCore -lTree -lCint -lReflex -lCintex -lRIO -lHist
#-lCore -lTree -lCint -lReflex -lCintex -lRIO -lHist
#Either of these two break it: -lCint -lReflex

include $(G4INSTALL)/config/binmake.gmk

visclean:
rm -f g4*.prim g4*.eps g4*.wrl
rm -f .DAWN_*

And that’s it. Thank you so much for your help! I really have to get this figured out :confused:

Hi,

[code] If I try to compile with just -lCint and/or -lReflex I get a compile error:

Linking my_program
/home/jason/geant4/tmp/Linux-g++/my_program/libmy_program.so: undefined reference to `TVersionCheck::TVersionCheck(int)'
collect2: ld returned 1 exit status[/code]humm … that tends to say that the link is done properly (because adding or removing -lCore makes a difference in the result) …

[quote]ld my_program[/quote]ld is a linker. To get the info you need to run ldd my_program (i.e. with 2 d)

It might be interesting to see the actual link line by doing[code]touch my_program.cc
make -n[code]

Cheers,
Philippe.

Hi Philippe,

Here is the result of ‘ldd my_program’:
linux-vdso.so.1 => (0x00007ffff85ce000)
libmy_program.so => /home/jason/geant4/tmp/Linux-g++/my_program/libmy_program.so (0x00007fb04192c000)
libG4Tree.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4Tree.so (0x00007fb04171a000)
libG4FR.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4FR.so (0x00007fb041508000)
libG4GMocren.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4GMocren.so (0x00007fb0412c6000)
libG4visHepRep.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4visHepRep.so (0x00007fb04103d000)
libG4RayTracer.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4RayTracer.so (0x00007fb040e20000)
libG4VRML.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4VRML.so (0x00007fb040c0b000)
libG4OpenGL.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4OpenGL.so (0x00007fb0409d0000)
libG4gl2ps.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4gl2ps.so (0x00007fb0407bc000)
libG4vis_management.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4vis_management.so (0x00007fb040507000)
libG4modeling.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4modeling.so (0x00007fb040246000)
libG4interfaces.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4interfaces.so (0x00007fb04000a000)
libG4persistency.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4persistency.so (0x00007fb03fd63000)
libG4error_propagation.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4error_propagation.so (0x00007fb03fb29000)
libG4readout.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4readout.so (0x00007fb03f920000)
libG4physicslists.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4physicslists.so (0x00007fb03f62c000)
libG4run.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4run.so (0x00007fb03f3e7000)
libG4event.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4event.so (0x00007fb03f191000)
libG4tracking.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4tracking.so (0x00007fb03ef48000)
libG4parmodels.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4parmodels.so (0x00007fb03ed32000)
libG4processes.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4processes.so (0x00007fb03d5df000)
libG4digits_hits.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4digits_hits.so (0x00007fb03d346000)
libG4track.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4track.so (0x00007fb03d12f000)
libG4particles.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4particles.so (0x00007fb03ce33000)
libG4geometry.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4geometry.so (0x00007fb03c9a9000)
libG4materials.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4materials.so (0x00007fb03c71d000)
libG4graphics_reps.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4graphics_reps.so (0x00007fb03c4d1000)
libG4intercoms.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4intercoms.so (0x00007fb03c288000)
libG4global.so => /home/jason/geant4/geant4.9.4.p01/lib/Linux-g++/libG4global.so (0x00007fb03c047000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007fb03bdb6000)
libGL.so.1 => /usr/lib/mesa/libGL.so.1 (0x00007fb03bb39000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0x00007fb03b91f000)
libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007fb03b6b9000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fb03b4a7000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fb03b16c000)
libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007fb03af5c000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007fb03ad54000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007fb03ab38000)
libCLHEP-2.1.0.1.so => /home/jason/CLHEP/lib/libCLHEP-2.1.0.1.so (0x00007fb03a7eb000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fb03a5d3000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb03a2cc000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb03a047000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb039e31000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb039a9c000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb03987e000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fb03967a000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fb039473000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fb03926d000)
libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fb039062000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb038e5d000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb041b3d000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fb038c41000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fb038a3b000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb038833000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fb03862f000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fb038429000)

And then here is the result of ‘touch my_program.cc’ and ‘make -n’:

Making dependency for file my_program.cc …
echo Compiling my_program.cc …
g++ -W -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe -O2 -fPIC -I/home/jason/root/include -DG4OPTIMISE -Iinclude -I/home/jason/CLHEP/include -DG4VERBOSE -DG4_STORE_TRAJECTORY -I/home/jason/geant4/geant4.9.4.p01/source/interfaces/basic/include -I/home/jason/geant4/geant4.9.4.p01/source/interfaces/common/include -I/home/jason/geant4/geant4.9.4.p01/source/interfaces/GAG/include -DG4UI_USE_TCSH -DG4UI_USE -DG4VIS_USE_ASCIITREE -DG4VIS_USE_DAWNFILE -DG4VIS_USE_GMOCRENFILE -DG4VIS_USE_HEPREPFILE -DG4VIS_USE_RAYTRACER -DG4VIS_USE_VRMLFILE -I/home/jason/geant4/geant4.9.4.p01/source/visualization/FukuiRenderer/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/gMocren/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/HepRep/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/RayTracer/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/Tree/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/VRML/include -DG4VIS_USE_OPENGLX -DG4VIS_USE_OPENGL -I/home/jason/geant4/geant4.9.4.p01/source/visualization/OpenGL/include -DG4VIS_USE_RAYTRACERX -I/home/jason/geant4/geant4.9.4.p01/source/visualization/externals/gl2ps/include -DG4VIS_USE -I/home/jason/geant4/geant4.9.4.p01/source/visualization/management/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/modeling/include -I/include -I/usr/include/X11/extensions -I/usr/include/X11 -I/home/jason/geant4/geant4.9.4.p01/source/global/management/include -I/home/jason/geant4/geant4.9.4.p01/source/global/HEPRandom/include -I/home/jason/geant4/geant4.9.4.p01/source/global/HEPGeometry/include -I/home/jason/geant4/geant4.9.4.p01/source/global/HEPNumerics/include -I/home/jason/geant4/geant4.9.4.p01/source/run/include -I/home/jason/geant4/geant4.9.4.p01/source/materials/include -I/home/jason/geant4/geant4.9.4.p01/source/parameterisations/gflash/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/management/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/adjoint/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/bosons/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/leptons/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/hadrons/barions/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/hadrons/ions/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/hadrons/mesons/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/shortlived/include -I/home/jason/geant4/geant4.9.4.p01/source/physics_lists/lists/include -I/home/jason/geant4/geant4.9.4.p01/source/physics_lists/builders/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/cuts/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/biasing/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/scoring/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/decay/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/optical/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/transportation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/parameterisation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/adjoint/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/standard/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/muons/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/utils/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/xrays/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/lowenergy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/highenergy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/pii/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/polarisation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/cross_sections/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/abrasion/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/binary_cascade/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/cascade/cascade/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/cascade/evaporation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/cascade/utils/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/body/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/cross_sections/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/fragmentation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/interface/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/processes/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/coherent_elastic/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/ablation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/evaporation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/fermi_breakup/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/fission/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/gem_evaporation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/handler/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/multifragmentation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/photon_evaporation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/util/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/em_dissociation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/high_energy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/im_r_matrix/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/incl/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/isotope_production/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/lend/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/lll_fission/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/low_energy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/neutron_hp/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/parton_string/diffraction/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/parton_string/hadronization/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/parton_string/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/parton_string/qgsm/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/photolepton_hadron/muon_nuclear/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/pre_equilibrium/exciton_model/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/qmd/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/radioactive_decay/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/rpg/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/theo_high_energy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/util/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/processes/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/stopping/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/util/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/management/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/solids/CSG/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/solids/specific/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/solids/BREPS/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/solids/Boolean/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/divisions/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/volumes/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/navigation/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/magneticfield/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/biasing/include -I/home/jason/geant4/geant4.9.4.p01/source/track/include -I/home/jason/geant4/geant4.9.4.p01/source/tracking/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/detector/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/hits/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/digits/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/scorer/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/utils/include -I/home/jason/geant4/geant4.9.4.p01/source/persistency/ascii/include -I/home/jason/geant4/geant4.9.4.p01/source/persistency/gdml/include -I/home/jason/geant4/geant4.9.4.p01/source/persistency/mctruth/include -I/home/jason/geant4/geant4.9.4.p01/source/readout/include -I/home/jason/geant4/geant4.9.4.p01/source/event/include -I/home/jason/geant4/geant4.9.4.p01/source/error_propagation/include -I/home/jason/geant4/geant4.9.4.p01/source/graphics_reps/include -I/home/jason/geant4/geant4.9.4.p01/source/intercoms/include
-c -o /home/jason/geant4/tmp/Linux-g++/my_program/exe/my_program.o my_program.cc
touch /home/jason/geant4/tmp/Linux-g++/my_program/exe/obj.last
echo "Using global libraries …"
if [ ! -d /home/jason/geant4/bin/Linux-g++ ] ; then mkdir /home/jason/geant4/bin/Linux-g++ ;fi
echo Linking my_program
g++ -W -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe -O2 -fPIC -I/home/jason/root/include -DG4OPTIMISE -Iinclude -I/home/jason/CLHEP/include -DG4VERBOSE -DG4_STORE_TRAJECTORY -I/home/jason/geant4/geant4.9.4.p01/source/interfaces/basic/include -I/home/jason/geant4/geant4.9.4.p01/source/interfaces/common/include -I/home/jason/geant4/geant4.9.4.p01/source/interfaces/GAG/include -DG4UI_USE_TCSH -DG4UI_USE -DG4VIS_USE_ASCIITREE -DG4VIS_USE_DAWNFILE -DG4VIS_USE_GMOCRENFILE -DG4VIS_USE_HEPREPFILE -DG4VIS_USE_RAYTRACER -DG4VIS_USE_VRMLFILE -I/home/jason/geant4/geant4.9.4.p01/source/visualization/FukuiRenderer/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/gMocren/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/HepRep/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/RayTracer/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/Tree/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/VRML/include -DG4VIS_USE_OPENGLX -DG4VIS_USE_OPENGL -I/home/jason/geant4/geant4.9.4.p01/source/visualization/OpenGL/include -DG4VIS_USE_RAYTRACERX -I/home/jason/geant4/geant4.9.4.p01/source/visualization/externals/gl2ps/include -DG4VIS_USE -I/home/jason/geant4/geant4.9.4.p01/source/visualization/management/include -I/home/jason/geant4/geant4.9.4.p01/source/visualization/modeling/include -I/include -I/usr/include/X11/extensions -I/usr/include/X11 -I/home/jason/geant4/geant4.9.4.p01/source/global/management/include -I/home/jason/geant4/geant4.9.4.p01/source/global/HEPRandom/include -I/home/jason/geant4/geant4.9.4.p01/source/global/HEPGeometry/include -I/home/jason/geant4/geant4.9.4.p01/source/global/HEPNumerics/include -I/home/jason/geant4/geant4.9.4.p01/source/run/include -I/home/jason/geant4/geant4.9.4.p01/source/materials/include -I/home/jason/geant4/geant4.9.4.p01/source/parameterisations/gflash/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/management/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/adjoint/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/bosons/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/leptons/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/hadrons/barions/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/hadrons/ions/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/hadrons/mesons/include -I/home/jason/geant4/geant4.9.4.p01/source/particles/shortlived/include -I/home/jason/geant4/geant4.9.4.p01/source/physics_lists/lists/include -I/home/jason/geant4/geant4.9.4.p01/source/physics_lists/builders/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/cuts/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/biasing/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/scoring/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/decay/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/optical/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/transportation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/parameterisation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/adjoint/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/standard/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/muons/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/utils/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/xrays/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/lowenergy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/highenergy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/pii/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/electromagnetic/polarisation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/cross_sections/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/abrasion/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/binary_cascade/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/cascade/cascade/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/cascade/evaporation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/cascade/utils/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/body/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/cross_sections/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/fragmentation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/interface/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/chiral_inv_phase_space/processes/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/coherent_elastic/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/ablation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/evaporation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/fermi_breakup/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/fission/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/gem_evaporation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/handler/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/multifragmentation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/photon_evaporation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/de_excitation/util/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/em_dissociation/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/high_energy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/im_r_matrix/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/incl/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/isotope_production/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/lend/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/lll_fission/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/low_energy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/neutron_hp/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/parton_string/diffraction/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/parton_string/hadronization/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/parton_string/management/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/parton_string/qgsm/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/photolepton_hadron/muon_nuclear/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/pre_equilibrium/exciton_model/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/qmd/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/radioactive_decay/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/rpg/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/theo_high_energy/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/models/util/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/processes/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/stopping/include -I/home/jason/geant4/geant4.9.4.p01/source/processes/hadronic/util/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/management/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/solids/CSG/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/solids/specific/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/solids/BREPS/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/solids/Boolean/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/divisions/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/volumes/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/navigation/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/magneticfield/include -I/home/jason/geant4/geant4.9.4.p01/source/geometry/biasing/include -I/home/jason/geant4/geant4.9.4.p01/source/track/include -I/home/jason/geant4/geant4.9.4.p01/source/tracking/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/detector/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/hits/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/digits/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/scorer/include -I/home/jason/geant4/geant4.9.4.p01/source/digits_hits/utils/include -I/home/jason/geant4/geant4.9.4.p01/source/persistency/ascii/include -I/home/jason/geant4/geant4.9.4.p01/source/persistency/gdml/include -I/home/jason/geant4/geant4.9.4.p01/source/persistency/mctruth/include -I/home/jason/geant4/geant4.9.4.p01/source/readout/include -I/home/jason/geant4/geant4.9.4.p01/source/event/include -I/home/jason/geant4/geant4.9.4.p01/source/error_propagation/include -I/home/jason/geant4/geant4.9.4.p01/source/graphics_reps/include -I/home/jason/geant4/geant4.9.4.p01/source/intercoms/include
-o /home/jason/geant4/bin/Linux-g++/my_program /home/jason/geant4/tmp/Linux-g++/my_program/exe/my_program.o -L/home/jason/CLHEP/lib -L/home/jason/geant4/geant4.9.4.p01/lib/Linux-g++ -L/home/jason/geant4/tmp/Linux-g++/my_program -Wl,-rpath /home/jason/geant4/tmp/Linux-g++/my_program
-lmy_program -L/home/jason/root/lib -lCore -lTree -lCint -lReflex -lCintex -lRIO -lHist -lG4Tree -lG4FR -lG4GMocren -lG4visHepRep -lG4RayTracer -lG4VRML -lG4OpenGL -lG4gl2ps -lG4vis_management -lG4modeling -lG4interfaces -lG4persistency -lG4error_propagation -lG4readout -lG4physicslists -lG4run -lG4event -lG4tracking -lG4parmodels -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4materials -lG4graphics_reps -lG4intercoms -lG4global -L/lib64 -lGLU -lGL -L/usr/X11R6/lib64 -lXmu -lXt -lXext -lX11 -lXi -lSM -lICE -lCLHEP -lm -lz
if [ ( -f /home/jason/geant4/bin/Linux-g++/my_program ) ]; then
echo “… Done!”; fi

Maybe that makes some sense to you?

Hi,

The result of ldd and the link line are inconsistent. Where is the ‘my_program’ you are running ldd on located on your disk?

Philippe.

Hi,

my_program is located in /home/jason/geant4/geant4.9.4.p01/my_program

That last ‘my_program’ is the directory, i.e. the file my_program.cc is in the my_program directory.

Jason

HI,

This is the problem. The makefile creates the file at /home/jason/geant4/bin/Linux-g++/my_programso you have an older version …

Philippe.

Wow, so I looked in /home/jason/geant4/bin/Linux-g++/ and found the file my_program… I copied and pasted it over to the directory /home/jason/geant4/geant4.9.4.p01/my_program where I have been executing it from… and it worked… O.o

I’m assuming then that the output of make puts the created file in the /home/jason/geant4/bin/Linux-g++/ directory.

I honestly have no idea why I was getting different results if I was never replacing that file like that.

But I guess it works now, although I’m not sure what I changed that fixed it in that whole long process??

But thank you very much for your help! I’m assuming that everything should be fixed now?

1 Like

Yes… sorry about all that… still don’t know what I changed, but that’s okay. Although I’m especially not sure why I was getting results compiling each time if I was always using the same file. Oh well, it works, no complaints.

I appreciate your help and sorry for that stupid mistake.

Jason

Hi Jason,

Both the ‘wrong’ executable and the ‘correct’ executable uses a shared library for most of your code and thus you should see any of the changes you made except maybe the one in my_program.cc itself.

Cheers,
Philippe.