Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* free memory
@ 1998-12-14  5:00 Christian Lorenz
  1998-12-14  5:00 ` James Hu
  1998-12-14  5:00 ` Martin Oettl
  0 siblings, 2 replies; 3+ messages in thread
From: Christian Lorenz @ 1998-12-14  5:00 UTC (permalink / raw)


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?

-- 
Christian Lorenz                     DFS Deutsche Flugsicherung GmbH
fon: +49 6103 594 1650               Paul-Ehrlich-Str. 33
fax: +49 6103 594 1680               63225 Langen
mailto:Christian.Lorenz@sis.dfs.de   Germany



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

* Re: free memory
  1998-12-14  5:00 free memory Christian Lorenz
@ 1998-12-14  5:00 ` James Hu
  1998-12-14  5:00 ` Martin Oettl
  1 sibling, 0 replies; 3+ messages in thread
From: James Hu @ 1998-12-14  5:00 UTC (permalink / raw)


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/>



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

* Re: free memory
  1998-12-14  5:00 free memory Christian Lorenz
  1998-12-14  5:00 ` James Hu
@ 1998-12-14  5:00 ` Martin Oettl
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Oettl @ 1998-12-14  5:00 UTC (permalink / raw)


Christian Lorenz 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?
>
> --
> Christian Lorenz                     DFS Deutsche Flugsicherung GmbH
> fon: +49 6103 594 1650               Paul-Ehrlich-Str. 33
> fax: +49 6103 594 1680               63225 Langen
> mailto:Christian.Lorenz@sis.dfs.de   Germany

You can use the command vmstat.

Martin




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

end of thread, other threads:[~1998-12-14  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-14  5:00 free memory Christian Lorenz
1998-12-14  5:00 ` James Hu
1998-12-14  5:00 ` Martin Oettl

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