×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

IUA EXECUTABLE

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?

RE: IUA EXECUTABLE

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

RE: IUA EXECUTABLE

(OP)
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.

RE: IUA EXECUTABLE

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

RE: IUA EXECUTABLE

(OP)
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

RE: IUA EXECUTABLE

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

RE: IUA EXECUTABLE

(OP)
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

RE: IUA EXECUTABLE

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

RE: IUA EXECUTABLE

(OP)
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.

RE: IUA EXECUTABLE

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

RE: IUA EXECUTABLE

(OP)
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

RE: IUA EXECUTABLE

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

RE: IUA EXECUTABLE

(OP)
I haven`t got to get the CD yet,but anyways I really appreciate your help Stefan.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close