I posted some questions here in late March about linking Rexx and Metal C. I
got some good input, and I promised to keep this list informed of what
worked out.

Well, the project is on indefinite hold, so I won't have any solid feedback
for the foreseeable future.

You may recall the problem I was trying to solve was "how can I write a
common function for both a C++ program and a compiled Rexx program? I want
to write it in a higher level language, and call it repeatedly from the Rexx
program without going through LE initialization every time."

FWIW, here is what I decided to do (before the project got quashed). I
decided to write the function in C conformant with the rules for Metal C. I
was then going to compile it in standard C and link it with the C++ code,
and compile it with Metal C to link with the Rexx code. (Yes, I am aware of
various linkage issues -- and their solutions.) If I wanted to for debug
purposes I could stick printf()'s and the like into the code under standard
C and either delete them or bracket them with #ifdef's before compiling
under Metal C. 

(Anyone who wants to offer thoughts is welcome to do so but please note I am
not really looking for suggestions at this time as the project is on
indefinite hold.)

Charles 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to