HP3000-L Archives

March 1996, Week 3

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:
Neil Harvey <[log in to unmask]>
Reply To:
Neil Harvey <[log in to unmask]>
Date:
Fri, 15 Mar 1996 07:02:00 S
Content-Type:
text/plain
Parts/Attachments:
text/plain (64 lines)
Greetings
 
I am trying to get the posix c compiler working.
When I tried the example posted by Holger, this is what I get.
Is there something missing?
All help appreciated
Neil
[log in to unmask]
 
/> c89 test.c -o blubb
CAN'T FIND LIBRARY c (LINKERR 1051)
LINK FAILED  (LINKERR 1116)
 
 
    linkedit.pub.sys
"link;from=^/tmp/c89002601F7.aaa;to=./blubb;posix;share;cap
=ph";parm=7
Program terminated in an error state. (CIERR 976)
c89: error:  link failed
 
 
 ----------
From:  owner-hp3000-l[SMTP:[log in to unmask]]
Sent:  14 March 1996 05:17
To:  Multiple recipients of list HP3000-L
Subject:  Re: HELP! Command line parameters for c89 programs
 
Hi Luis,
 
please read a good book about C but I think the following helps
you at the moment:
 
file: test.c
#include <stdio.h>
 
void main (int argc, char* argv[])
{
int i;
 
printf("argc: %d\n",argc);
for(i=0;i<argc;i++)
   printf("argv[%d]: %s\n",i,argv[i]);
}
 
 
 
 
compile and run in Posix Shell:
 
shell/iX> c89 test.c -o blubb
 
shell/iX> blubb aa 123 56 ggg
argc: 5
argv[0]: blubb
argv[1]: aa
argv[2]: 123
argv[3]: 56
argv[4]: ggg
shell/iX>
 
'Hope this helps you anyway...
Holger Wiemann
Hewlett Packard GmbH, Germany

ATOM RSS1 RSS2