CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

Compilation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 9, 2008, 06:20
Default Compilation
  #1
alessio
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

  Reply With Quote

Old   September 18, 2008, 03:32
Default Re: Compilation
  #2
Philip Jones
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_'

  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 11:47
UDF compilation: need VC++? Biga FLUENT 3 November 6, 2004 14:34
udf compilation jy FLUENT 0 August 10, 2000 09:39


All times are GMT -4. The time now is 19:41.