Compiling and Linking UPFs
Compiling and Linking UPFs
(OP)
on UNIX Systems
I can compile the UPFs successfully, but I have problem in Activating UPFs.
each time after compiling I have to restart ANSYS, before I apply my customized user element.
I have tried by
Issuing the USRCAL command as UPF Guide says, and
~restart
Well,this command is not recognized by ANSYS, but I heard it is useful, anyway I should try, but still no effect.
on WINDOWS Systems
I can't compile them successfully after I copy all needed df*.lib to the dictated directory. All I got is such message:
Creating library ANSYS.lib and object ANSYS.exp
ansys2.lib(sysrwr.obj) : error LNK2001: unresolved external symbol _for_write_dir_i8
ansys2.lib(sysrrd.obj) : error LNK2001: unresolved external symbol _for_read_dir_i8
ANSYS.exe : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
d:\Programme\Ansys Inc\v80\ANSYS\custom\user\Intel>goto end
Could anybody give me any kind of help information?
Thank you very much!!!
I can compile the UPFs successfully, but I have problem in Activating UPFs.
each time after compiling I have to restart ANSYS, before I apply my customized user element.
I have tried by
Issuing the USRCAL command as UPF Guide says, and
~restart
Well,this command is not recognized by ANSYS, but I heard it is useful, anyway I should try, but still no effect.
on WINDOWS Systems
I can't compile them successfully after I copy all needed df*.lib to the dictated directory. All I got is such message:
Creating library ANSYS.lib and object ANSYS.exp
ansys2.lib(sysrwr.obj) : error LNK2001: unresolved external symbol _for_write_dir_i8
ansys2.lib(sysrrd.obj) : error LNK2001: unresolved external symbol _for_read_dir_i8
ANSYS.exe : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
d:\Programme\Ansys Inc\v80\ANSYS\custom\user\Intel>goto end
Could anybody give me any kind of help information?
Thank you very much!!!





RE: Compiling and Linking UPFs
~restart is wrong,
the right command should be:
~reset
after using this ~reset command, message reads:
~RESET was processed: The external command buffers have been cleared.
I used to use USRCAL, and it worked at least once. I've no idea why it now doesn't work anymore, since I never changed any config. files.
Anybody has simillar problems? how could solve it?
Thanks again.
RE: Compiling and Linking UPFs
I have installed Ansys 8.0 on my PC mounting Windows XP (2002, sp1). As indicated by the ansys customer service, I have also installed Compaq Visual Fortran 6.6 update A along with Microsoft Visual C++ 6.0, sp5. I saved ANSCUST.BAT in the working directory "c:\temp" along with the file "MAKEFILE".
Then, I make a test by saving the file usermat3d.f supplied in \ansys\custom\user\intel in the working direcotry c:\temp, however when I run ANSCUST.BAT, I obtain a file of error f_comp.err (simply reporting "usermat3d.i") along with a usermat3d.obj.
I did not obtain the customized file ANSYS.exe. What can be my mistake?
Please, any helps is very appreciated.
Thanks
Luca Sorelli
BERG, Dublin
Ireland
RE: Compiling and Linking UPFs
********************************
Creating library ANSYS.lib and object ANSYS.exp
ansys2.lib(sysrwr.obj) : error LNK2001: unresolved external symbol _for_write_di
r_i8
ansys2.lib(sysrrd.obj) : error LNK2001: unresolved external symbol _for_read_dir
_i8
ANSYS.exe : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
*****************************************
When I execute the ANSCUST.BAT it generates archive ANSYS.EXE to put when the archive closes the window of the MSDOS adds and appears one f_comp.err with log of the errors. I have instaled in my computer version 7.0 of the Ansys and FORTRAN 6.6. I am having problems tb to install Ansys 9.0. If some will be able to help, is thanks me since the moment.