Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

IUA EXECUTABLE

Status
Not open for further replies.

gontxal

Computer
Joined
Dec 3, 2002
Messages
7
Location
ES
I got from my_iua.f the compiled my_iua.o¿How can I get the Catia executable file MY_IUA?
 
Hallo,

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
 
Thank you Stefan,

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.
 
Hello gontxal,

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
 
Hi Stefan,

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
 
Hello gontxal,

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
 
Thanks a lot Stefan!
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
 
Hello gontxal,

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
 
hello Stefan,
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.
 
Hello gontxal,

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
 
Hi Stefan,

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
 
Hello gontxal,

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
 
I haven`t got to get the CD yet,but anyways I really appreciate your help Stefan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top