IUA EXECUTABLE
IUA EXECUTABLE
(OP)
I got from my_iua.f the compiled my_iua.o¿How can I get the Catia executable file MY_IUA?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: IUA EXECUTABLE
make a little script eg. test.sh with the following content:
shared -p mysub1.o \
mysub2.o \
csystem.o \
-o /prog/v4load/myiua
Best Regards
Stefan
RE: IUA EXECUTABLE
but I have a problem,where should I execute the script?,because I've done it in the path where I have my_iua.o,and I can not find shared "command" in the Fortran path either :
shared -p my_iua.o \
-o /iua_path/my_iua
when I execute the scrcipt the system can not find shared,
Am I missing any file?
Thank you for your help.
RE: IUA EXECUTABLE
it is important that you do your programming as a catia user with the the correct PATH and LIB settings (YOUR.env)
Best Regards
Stefan
RE: IUA EXECUTABLE
I have done it as you say and I get this message:
api: ==== Creating a shared load ===
Compiling C source of module header ... error
/usr/catia4241/cfg_bhase/code/bin/lkcat[374]: cc: not found
==========================================
PROCESS INTERRUPTEED
Stopped at 14:59:12
==========================================
I guess I'm missing some packets of C compiler.
Do you know what should I install in my computer?
thanks a lot
RE: IUA EXECUTABLE
you need for the linking a C-compiler. The standard IBM C-compiler needs a license and is in the directory:
/usr/ibmcxx/bin
You have to add this directory to your path.
If you want to use a GNU C-compiler you have to try. I have no experience with it.
Good luck !
Best regards
Stefan
RE: IUA EXECUTABLE
I have installed IBM C for AIX and It gets to compile but it does´nt create the load module giving this error:
===== Creating a shared load ====
Compiling C source of module header... ok
Creating load module... error
ld: 0711-224 WARNING: Duplicatesymbol:_system_configuration
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: p_xargc
ld: 0711-317 ERROR: Undefined symbol: p_xargv
==============================================
PR0CESS INTERRUPTED
Stopped at 19:37:47
==============================================
Do you know what I am doing wrong?
Thank you
RE: IUA EXECUTABLE
you have listed all subroutines in your link script ? Perhaps you have code in C where you have to add the apropriate Library ?
shared -p mysub1.o \
mysub2.o \
csystem.o \
-o /prog/v4load/myiua
-a /usr/lib/libC.a
Regards
Stefan
RE: IUA EXECUTABLE
I just have one code file and I have the link script as follows:
shared -p MYIUA.o \
-o /prog/v4load/MYIUA
and I modified it this way:
shared -p MYIUA.o \
-o /prog/v4load/MYIUA
-a /usr/lib/libC.a
I get the same results as before and
link_script.sh[3]: -a: not found.
RE: IUA EXECUTABLE
my fault:
shared -p mysub1.o \
mysub2.o \
csystem.o \
-o /prog/v4load/myiua \
-a /usr/lib/libC.a
use a backslash after myiua.
By the way, which version of Fortran and C do you use ?
Sorry and regards
Stefan
RE: IUA EXECUTABLE
Thanks a lot for your help, I've done it as you say but I got the same error:
ld: 0711-224 WARNING: Duplicate symbol:_system_configuration
ld: 0711-345 Use the -bloadmap or -bnoquiet optinon to obtain nore information.
ld: 0711-317 ERROR: UNdefined symbol: p_xargc
ld:0711-317 ERROR: Undefined symbol: p_xargv
I've got installed Fortran 5.1 and IBM C for AIX 5.0
RE: IUA EXECUTABLE
my installation is:
xlfcmp 5.1.1.0 C XL Fortran Compiler
xlC.cpp 4.3.0.1 C C for AIX Preprocessor
perhaps you can try this combination, if available. It is on the CD:
RS/6000 Operating Environment for CATIA
Version 2.2
I think that is my last idea.
Good luck again and regards
Stefan
RE: IUA EXECUTABLE