🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42628

mstats() problem

#42628
From: Renaud Paquay [Begay]
Date: Thu, 16 Nov 1995 00:00
23 lines
1028 bytes
Hello People,

I'm currently using gcc and g++ 2.7.0 on Linux 1.3.20

I'm trying to link a c++ program which uses the function:
struct mstats mstats();

This function prototype is declared in /usr/include/malloc.h

The compilation is OK (no warning)
but I can't link it. The linker error is:
objets/util.o(.text+0x41b): undefined reference to `mstats'

I tried 'nm' on the '.a' libs to find where 'mstats()' is defined.
Nothing.

Could someone help me?

Renaud Paquay
Renaud.Paquay@labri.u-bordeaux.fr

PS: You can reply to this newsgroup or to my private e-mail address.
    Thanx.
Technical Details
Message-ID: <48flvs$h87@serveur.cribx1.u-bordeaux.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,44084d3bbacffd29,start
X-Google-Attributes: gid11318c,public
From: paquay@labri.u-bordeaux.fr (Renaud Paquay [Begay])
Subject: mstats() problem
Date: 1995/11/16
Message-ID: <48flvs$h87@serveur.cribx1.u-bordeaux.fr>
X-Deja-AN: 119671909
distribution: world
organization: Laboratoire Bordelais de Recherche en Informatique
newsgroups: gnu.gcc.help