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:
Michael Kennett <[log in to unmask]>
Reply To:
Date:
Wed, 1 Apr 1998 14:18:42 +0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (47 lines)
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.)

ATOM RSS1 RSS2