Print

Print


Everything under /u/group/hps/hps_soft/stdhep/src/stdhep-5-06-01 is 
off-the-shelf stdhep code, downloaded from and documented at 
http://cepa.fnal.gov/psm/stdhep/. We did not write this code, but it 
compiles fine and the copy in hps_soft should work on ifarm. Your gcc 
arguments are probably just bad.

The makefile at /u/group/hps/hps_soft/stdhep/src/Makefile is used to build 
our stdhep-based scripts, and should be a useful example in figuring out 
how to link to the stdhep libraries.

On Fri, 17 Apr 2015, Bradley T Yale wrote:

> Has anybody successfully run anything that uses mcfio.h recently?
>
> I'm trying to compile stdhep.cc, and all the relevant libraries appear to be linked, but I get the following error:
>
>
> /u/group/hps/hps_soft/stdhep/src/stdhep-5-06-01/mcfio/src/mcfio.h:71: error: 'u_int' has not been declared
> /u/group/hps/hps_soft/stdhep/src/stdhep-5-06-01/mcfio/src/mcfio.h:80: error: 'bool_t' has not been declared
> /u/group/hps/hps_soft/stdhep/src/stdhep-5-06-01/mcfio/src/mcfio.h:80: error: expected ',' or '...' before '(' token
>
>
> The variables 'u_int' and 't_bool' in question appear in some functions defined in mcfio.h, and look like they should just be primitives, but aren't declared as such.
>
> Are they defined somewhere, or is this a mistake in the code? The third error seems like it could be.
>
>
> If interested, this is what I'm running:
>
>
> export STDHEP_DIR=/u/group/hps/hps_soft/stdhep
> export ROOTSYS=/u/apps/root/5.34.13/root
> export DST_DIR=/u/group/hps/hps_soft/hps-dst
> export PATH=$ROOTSYS/bin:$PATH
>
> export LD_LIBRARY_PATH=$STDHEP_DIR/src/stdhep-5-06-01/lib
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/u/group/hps/hps_soft/hps-dst/build/lib
>
> g++ stdhep.cc -o weightevents.exe -Wl,--no-as-needed -I$STDHEP_DIR/src $STDHEP_DIR/src/stdhep_mcfio.h -I$STDHEP_DIR/src/stdhep-5-06-01/mcfio/src $STDHEP_DIR/src/stdhep-5-06-01/mcfio/src/mcfio.h -I$STDHEP_DIR/src/stdhep-5-06-01/src/inc -I$DST_DIR/include/hps_event -I$ROOTSYS/include -L$STDHEP_DIR/src/stdhep-5-06-01/lib -lFmcfio -lstdhep -lstdhepC -L$STDHEP_DIR/src/stdhep-5-06-01/src/stdhep -L$DST_DIR/build/lib -L$ROOTSYS/lib -lHpsEvent `root-config --cflags` `root-config --libs`
>
>
> As a side note, my goal is to link everything that I need to in order to extract information from, and manipulate events within the HEPEVT framework, using stdhep.cc as a learning tool. If there is a 'better' or more standard way of doing this, or at a different level, I would be interested in that information as well.
>
>
> Brad
>
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the HPS-SOFTWARE list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1
>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1