🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51523

HELP

#51523
From: ABEL%ESOC1.BITNET
Date: Sun, 16 May 1993 15:00
31 lines
1366 bytes
I use gcc 2.3.3 and libg++ 2.3  and i facet to problem
i cannot use system call 'msgget' but only with g++, with gcc
I can do it.
Perhaps anybody may advice me what i should do for it.
I use SunOS 4.1.1 on the sparc ELC.

For example:

--------------------------------------------------------------------

#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>

extern int msgget(key_t,int);

main() {
  key_t key;
  int rcv;
  key = 1;
  rcv = msgget(key,666);
  }

--------------------------------------------------------------------

c++ ./msgd.c -o ./msgd
ld: Undefined symbol
   _msgget__Fli
collect: /usr/bin/ld returned 2 exit status

Compilation exited abnormally with code 1 at Sun May 16 18:32:32
Technical Details
Message-ID: <9305161456.AA03974@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.dfn.de!darwin.sura.net!zaphod.mps.ohio-state.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!mitvma.mit.edu!ABEL%ESOC1.BITNET

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,46018cbe32a34b97,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-16 08:02:40 PST
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.dfn.de!darwin.sura.net!zaphod.mps.ohio-state.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!mitvma.mit.edu!ABEL%ESOC1.BITNET
From: ABEL%ESOC1.BITNET@mitvma.mit.edu
Newsgroups: gnu.gcc.help
Subject: HELP
Date: 16 May 1993 11:00:37 -0400
Organization: GNUs Not Usenet
Lines: 31
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9305161456.AA03974@life.ai.mit.edu>