Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Difference VAX C DIR/ALL/ DEC C ?
@ 1994-12-15 18:39 Gary Lee McDonald
  1994-12-16 11:26 ` Core Technology Group - Run Time Libraries
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Lee McDonald @ 1994-12-15 18:39 UTC (permalink / raw)


Greetings,

  In trying to port a program from VAX to AXP I ran into the following problem.
==================
        /* test.c */
#include <stdio.h>
#include <ctype.h>
#include <signal.h>
#include <string.h>	/* some systems require <strings.h> instead */
#include <curses.h>

main() /* VMS version */
{
    char *dummy;
    char term[81];
    longname(dummy, term);
    printf("Terminal = %s\n", term);
    return(1);
}
=================

This snippet of code works as expected on the VAX (VAX C v.3.2-044), but
doesn't on AXP (DEC C V.4.0-000).  Both systems on OpenVMS v.6.1.  I do very
little C, so I may be missing something simple. :-)

No options on either compile; no options on link on AXP; on VAX it's 
$ link test,opt/opt, where opt.opt contains sys$share:vaxcrtl.exe/share.

Also the routine was originally named 'setup', which worked on VAX, but
'protection violation' on AXP.  Changing 'setup' to 'main' fixed that.

Thanks for any insight!

UMKC					GaryM.  
5100 Rockhill Road			Univ. of Mo. at K.C.
Cockefair Hall				(816) 235-1183
Room 2, Gary Lee McDonald		MCDONALD   @ CCTR.UMKC.EDU
Kansas City, Mo. 64110			POSTMASTER @ CCTR.UMKC.EDU


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-12-16 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-12-15 18:39 Difference VAX C DIR/ALL/ DEC C ? Gary Lee McDonald
1994-12-16 11:26 ` Core Technology Group - Run Time Libraries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox