|
[Sponsors] |
September 9, 2008, 07:20 |
Compilation
|
#1 |
Guest
Posts: n/a
|
Dear all,
I am trying to use starcd with user defined subroutines. But we get an error: PNP: compiling /share/apps/absoft/bin/f90 -w -fPIC -YCOM_NAMES=LCS -YEXT_NAMES=LCS -YEXT_SFX=_ -B19 -cpupteron -m64 -c Uposdat.f -o linux64_2.4-absoft_9.0a-gcc_4.1.1-glibc_2.2.5-dso/Uposdat.o PNP: ***ERROR*** Failed to generate user coding dynamic shared object "ufile/linux64_2.4-absoft_9.0a-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.so". PNP: ==> Please check the dynamic shared object generation error messages. Do you know where I can find the error messages for the dynamic shared object generation? Regards Alessio |
|
September 18, 2008, 04:32 |
Re: Compilation
|
#2 |
Guest
Posts: n/a
|
I bet that the problem is in the file being called Uposdat.f and has a subroutine called posdat inside it.
STAR-CD has an archive of dummy routines for user coding, when it compiles it removes the dummys by matching the name, so if you supply posdat.f it removes posdat.o from the archive and then builds using the remainder of the archive and your new object. If you have subroutine posdat in file Uposdat.f then it will leave posdat.o in the archive and so you now have multiple definitions of posdat and it fails. On my machine I get this message: PNP: Building New dynamic shared object "ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.so" PNP: packing ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/Uposdat.o PNP: packing ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.a PNP: ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.a(posdat.o): In function `posdat_': PNP: posdat.o(.text+0x0): multiple definition of `posdat_' |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF COMPILATION... | venkatesh4386@gmail.com | FLUENT | 2 | December 1, 2008 09:58 |
UDF COMPILATION... | venkatesh4386@gmail.com | FLOW-3D | 0 | November 8, 2008 12:22 |
UDF COMPILATION | T.Hariharanath | FLUENT | 2 | July 25, 2005 12:47 |
UDF compilation: need VC++? | Biga | FLUENT | 3 | November 6, 2004 14:34 |
udf compilation | jy | FLUENT | 0 | August 10, 2000 10:39 |