Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: koonteck@merlion.singnet.com.sg (Chua Koon Teck)
Subject: compilation under OSF1
Date: 1995/07/26	[thread overview]
Message-ID: <3v4ki1$h6v@lantana.singnet.com.sg> (raw)

Hi

I am trying to compile a very simple program under OSF1 which contains 
the command getlogin_r(char*, int).  My program is :

include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

int main(void)
{
        int fd;
        char* login;
        int len;
        int status;

        status = getlogin_r(login, len);

        printf("status: %d, login: %s\n", len, login);
}

I uses "cc -o pinewrap pinewrap.c".  But it seems that the linker could 
not resolve the getlogin_r command.

Any help will be greatly appreciated. Appreciate if reply be  email to me.



Thank you.

Have a nice day.



Regards


Chua Koon Teck		
koonteck@singnet.com.sg
SingNet			
URL="http://www.singnet.com.sg/"	
Singapore Telecom 



             reply	other threads:[~1995-07-26  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-26  4:00 Chua Koon Teck [this message]
1995-07-27  4:00 ` compilation under OSF1 Dan Pop
read-only archive

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