Hi Stefan
I keep the deq99c.o in my working directory (different from flutil) and link
it with lfluka from flutil, like
$FLUPRO/flutil/lfluka -m fluka -o mine deq99c.o
It works with lfluka. With ldpmqmd it caused and error. Changing the command
with the full path to deq99c.o now place inside flutil and not my current
working directory however worked.
Like
$FLUPRO/flutil/ldpmqmd -m fluka -o mine $FLUPRO/flutil/deq99c.o
The error that I mentioned goes like this.
----------------------error ---------------------
$FLUPRO/flutil/ldpmqmd -m fluka -o flukaDPM deq99c.o
$FLUPRO = /home/sunil/fluka
tmpo/evdini.o
tmpo/eventd.o
tmpo/eveout.o
tmpo/eveqmd.o
tmpo/evqmdi.o
tmpo/idd2f.o
tmpo/idf2d.o
tmpo/zrdpcm.o
tmpo/zrrqcm.o
ar x /home/sunil/fluka/libflukahp.a fluka.o
rm: cannot remove `flukaDPM.map': No such file or directory
g77 -O3 -g -mcpu=pentiumpro -fexpensive-optimizations -funroll-loops
-fstrength-reduce -Wall -fno-automatic -fno-silent -m32
-ffortran-bounds-check -I/home/sunil/fluka/flukapro -v -o flukaDPM -Xlinker
-Map -Xlinker flukaDPM.map fluka.o deq99c.o tmpo/evdini.o tmpo/eventd.o
tmpo/eveout.o tmpo/eveqmd.o tmpo/evqmdi.o tmpo/idd2f.o tmpo/idf2d.o
tmpo/zrdpcm.o tmpo/zrrqcm.o -L/home/sunil/fluka
-L/home/sunil/fluka/interface -L/home/sunil/fluka/latestRQMD -ldpmjet -lrqmd
-lflukahp
Driving: g77 -O3 -g -mcpu=pentiumpro -fexpensive-optimizations
-funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -m32
-ffortran-bounds-check -I/home/sunil/fluka/flukapro -v -o flukaDPM -Xlinker
-Map -Xlinker flukaDPM.map fluka.o deq99c.o tmpo/evdini.o tmpo/eventd.o
tmpo/eveout.o tmpo/eveqmd.o tmpo/evqmdi.o tmpo/idd2f.o tmpo/idf2d.o
tmpo/zrdpcm.o tmpo/zrrqcm.o -L/home/sunil/fluka
-L/home/sunil/fluka/interface -L/home/sunil/fluka/latestRQMD -ldpmjet -lrqmd
-lflukahp -lfrtbegin -lg2c -lm -shared-libgcc
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++,f77 --disable-libgcj
--host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-4)
/usr/libexec/gcc/i386-redhat-linux/3.4.6/collect2 --eh-frame-hdr -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 -o flukaDPM
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtbegin.o -L/home/sunil/fluka
-L/home/sunil/fluka/interface -L/home/sunil/fluka/latestRQMD
-L/usr/lib/gcc/i386-redhat-linux/3.4.6
-L/usr/lib/gcc/i386-redhat-linux/3.4.6
-L/usr/lib/gcc/i386-redhat-linux/3.4.6/../../.. -Map flukaDPM.map fluka.o
deq99c.o tmpo/evdini.o tmpo/eventd.o tmpo/eveout.o tmpo/eveqmd.o
tmpo/evqmdi.o tmpo/idd2f.o tmpo/idf2d.o tmpo/zrdpcm.o tmpo/zrrqcm.o -ldpmjet
-lrqmd -lflukahp -lfrtbegin -lg2c -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtend.o
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crtn.o
deq99c.o: In function `_start':
(.text+0x0): multiple definition of `_start'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o:(.text+0x0): first
defined here
deq99c.o:(.rodata+0x0): multiple definition of `_fp_hw'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o:(.rodata+0x0): first
defined here
deq99c.o: In function `_fini':
(.fini+0x0): multiple definition of `_fini'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o:(.fini+0x0): first
defined here
deq99c.o:(.rodata+0x4): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o:(.rodata.cst4+0x0):
first defined here
deq99c.o: In function `__data_start':
(.data+0x0): multiple definition of `__data_start'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o:(.data+0x0): first
defined here
deq99c.o: In function `MAIN__':
/home/alfredo/flupro/mainmvax/fluka.f:6: multiple definition of `MAIN__'
fluka.o:/home/alfredo/flupro/mainmvax/fluka.f:6: first defined here
deq99c.o: In function `_init':
(.init+0x0): multiple definition of `_init'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o:(.init+0x0): first
defined here
tmpo/evdini.o: In function `evdini_':
/home/alfredo/flupro/dpmmvax/evdini.f:6: multiple definition of `evdini_'
deq99c.o:/home/alfredo/flupro/dpmmvax/evdini.f:6: first defined here
tmpo/eventd.o: In function `eventd_':
/home/alfredo/flupro/dpmmvax/eventd.f:6: multiple definition of `eventd_'
deq99c.o:/home/alfredo/flupro/dpmmvax/eventd.f:6: first defined here
tmpo/eveout.o: In function `eveout_':
/home/alfredo/flupro/dpmmvax/eveout.f:6: multiple definition of `eveout_'
deq99c.o:/home/alfredo/flupro/dpmmvax/eveout.f:6: first defined here
tmpo/eveqmd.o: In function `eveqmd_':
/home/alfredo/flupro/rqmdmvax/eveqmd.f:6: multiple definition of `eveqmd_'
deq99c.o:/home/alfredo/flupro/rqmdmvax/eveqmd.f:6: first defined here
tmpo/evqmdi.o: In function `evqmdi_':
/home/alfredo/flupro/rqmdmvax/evqmdi.f:6: multiple definition of `evqmdi_'
deq99c.o:/home/alfredo/flupro/rqmdmvax/evqmdi.f:6: first defined here
tmpo/idd2f.o: In function `idd2f_':
/home/alfredo/flupro/dpmmvax/idd2f.f:6: multiple definition of `idd2f_'
deq99c.o:/home/alfredo/flupro/dpmmvax/idd2f.f:6: first defined here
tmpo/idf2d.o: In function `idf2d_':
/home/alfredo/flupro/dpmmvax/idf2d.f:6: multiple definition of `idf2d_'
deq99c.o:/home/alfredo/flupro/dpmmvax/idf2d.f:6: first defined here
tmpo/zrdpcm.o: In function `zrdpcm_':
/home/alfredo/flupro/dpmmvax/zrdpcm.f:6: multiple definition of `zrdpcm_'
deq99c.o:/home/alfredo/flupro/dpmmvax/zrdpcm.f:6: first defined here
tmpo/zrrqcm.o: In function `zrrqcm_':
/home/alfredo/flupro/rqmdmvax/zrrqcm.f:6: multiple definition of `zrrqcm_'
deq99c.o:/home/alfredo/flupro/rqmdmvax/zrrqcm.f:6: first defined here
collect2: ld returned 1 exit status
---------------------end of error--------------------------------
On 8/27/08, Stefan Roesler <sroesler@mail.cern.ch> wrote:
>
> Hi Sunil
>
> It should work the same way as lfluka (and it does on my machine), e.g.:
>
> flutil/ldpmqmd -m fluka -o flukaDPM flutil/deq99c.o
>
> Could you please be more specific on the error message which you get?
>
> Cheers
> Stefan
>
>
> On Wed, 27 Aug 2008, Sunil C wrote:
>
> > HI Stefan, All
> >
> > I would like to know how to link the de99c.o with ldpmqmd. I tried just
> like
> > I do for lfluka but it did not work.
> > I am interested in using the fluence to dose conversion coeffecients to
> > score dose, for particles resulting from heavy ion interactions.
> >
> > Regards
> > Sunil
> >
>
> --
> ___________________________________
>
> Stefan Roesler
> CERN, SC/RP
> CH-1211 Geneva 23
> Switzerland
>
> Phone: +41-22-7679891
> Fax: +41-22-7669639
> E-mail: Stefan.Roesler@cern.ch
>
Received on Fri Aug 29 11:14:57 2008
This archive was generated by hypermail 2.1.8 : Fri Aug 29 2008 - 11:15:28 CEST