HP3000-L Archives

April 1998, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
robert grimes <[log in to unmask]>
Reply To:
robert grimes <[log in to unmask]>
Date:
Wed, 1 Apr 1998 11:11:44 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (60 lines)
Michael Kennett wrote:
>
> Hello All,
>
> OK - so I'm a complete newby to MPE/iX, and I feel like a complete
> twit as I cannot build a "Hello World" C program within the Posix
> shell (SH.HPBIN.SYS) that runs.
>
> I would like to know how to build C programs using the c89 compiler.
>
> I am using MPE/iX Release C.55.00, and the Posix developers kit is
> installed on the system (have /lib/libc.a).
>
> The C program is very simple: (It compiles under MPE with ccxlgo)
>
> #include <stdio.h>
>
> int main()
> {
>    printf("Hello World!\n");
>    return 0;
> }
>
> If I issue the command
>
>         c89 -o hello hello.c -lc
>
> everthing seems to compile, and I am left with an executable (?)
> file hello. However, trying to run this program gives the error
>
> **** EXEC FUNCTION FAILED; subsys =517; info = 48
> ABORT: /MMSTST/MK/foodir/hello
> NM SYS   a.00a9d288 dbg_abort_trace+$24
> NM UNKN  15c.0033bf6c
> NM UNKN  814.0004bbd8
> [1] + Done (134) ./hello
>   5505155   Abort ./hello
>
> I looked at the (excellent) HP3000-L/comp.sys.hp.mpe FAQ, but
> unfortunately it does talk about this. I'd greatly appreciate
> any help on this !
>
> Regards,
>
> Mike Kennett
>
> (Usual Disclaimer: views expressed in this document are my own,
> and not those of my employer.)

I don't know Posix.  :(
I don't know C. :(

But, you might try changing the executable codes file name to something
like "exit" or "bye".
--
Robert P. Grimes                       Phone:  (254) 526-1148
Programmer/Analyst                     Fax:    (254) 526-0817
Central Texas College                  P. O. Box 1800
                                       Killeen, Texas 76540-0999

ATOM RSS1 RSS2