The bracket problem is due to the ASCII/EBCDIC translation table used during
the conversion, probably by ftp. If you can find (or create) a good table, you
could retransmit the source properly.
To call a C module from an assembler routine, you have to establish the
proper environment. The Programming Guide manual has a whole section on
inter-language calls. I don'tknow if COBOL already sets up a suitable
environment. If not, you could create a short assembler routine that could be
called from either to perform the setup.
There is no need for main in a particular source module. I've compile many
source files that don't contain main. (If you are building a C program, then
there must be a function called main in exactly one source module that will
eventually be linked into the program.) What compiler message are you getting
that makes you think you need main?
I don't use DLLs but I thought I saw traffic here previously that Binder can
build them.
john stephens <[EMAIL PROTECTED]> wrote:
Hey all,
I have recently inhereted an application that was written in C on a Win32 /
AIX platform that needs to be moved up to the mainframe (z/OS V1R4.0).
I have never had to use the C compiler on the MF and to say I am confused
would be an understatment. I know I am missing some connecting dots.
In order to compile the routine we have had to replace all our square brackets
with trigraphs and digraphs. I know there has to be a compile option that
pretty much emululates a win32 or AIX environment as far as acceptable chars.
Also, this routine is going to be used as a called subroutine by both
Assembler and COBOL. In the Win32 envirionnment, I don't need a 'main'
section and I can compile it into a .dll thereby making it unique and
callable. However, on the MF I can't get past the compile without a 'main'.
And linking is another problem... sigh...
---------------------------------
Blab-away for as little as 1ยข/min. Make PC-to-Phone Calls using Yahoo!
Messenger with Voice.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html