Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jxh@cs.wustl.edu (James Hu)
Subject: Re: free memory
Date: 1998/12/14	[thread overview]
Message-ID: <slrn77aj9c.c3k.jxh@jamespc.ungerhu.com> (raw)
In-Reply-To: 3674DC99.57B4520@sis.dfs.de

On Mon, 14 Dec 1998 09:38:33 +0000, Christian Lorenz <Christian.Lorenz@sis.dfs.de> wrote:
>Hi to all!
>
>I have the following problem:
>
>I like to find out how much memory is free under DEC UNIX 4.0.
>There's a function vm_statistics() which could give me the information.
>
>BUT: this only works in a program compiled with C.
>     When I compile the same program with the C++ compiler the
>     function vm_statistics() is an unknown reference (I know that
>     symbols are differently generated in C and C++).
>     Both compilers are GNU.
>
>Any ideas?

BTW, C++ questions belong in comp.lang.c++.

In the C++ code, see if giving the function ``extern "C"'' linkage
solves your problem.

-- 
James C. Hu <jxh@cs.wustl.edu>       Computer Science Doctoral Candidate
http://www.cs.wustl.edu/~jxh/        Washington University in Saint Louis
>>>>>>>>>>>>> I use *SpamBeGone* <URL:http://www.internz.com/SpamBeGone/>



  reply	other threads:[~1998-12-14  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-14  5:00 free memory Christian Lorenz
1998-12-14  5:00 ` James Hu [this message]
1998-12-14  5:00 ` Martin Oettl
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