From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b0d5872172d735c5 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,b0d5872172d735c5 X-Google-Attributes: gid1014db,public From: jxh@cs.wustl.edu (James Hu) Subject: Re: free memory Date: 1998/12/14 Message-ID: #1/1 X-Deja-AN: 422185685 References: <3674DC99.57B4520@sis.dfs.de> X-Complaints-To: news@home.net X-Trace: news.rdc1.sfba.home.com 913657132 24.2.22.33 (Mon, 14 Dec 1998 09:38:52 PDT) Organization: @Home Network User-Agent: slrn/0.9.5.3 (UNIX) Reply-To: jxh@cs.wustl.edu NNTP-Posting-Date: Mon, 14 Dec 1998 09:38:52 PDT Newsgroups: comp.lang.c,comp.sys.dec On Mon, 14 Dec 1998 09:38:33 +0000, 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? 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 Computer Science Doctoral Candidate http://www.cs.wustl.edu/~jxh/ Washington University in Saint Louis >>>>>>>>>>>>> I use *SpamBeGone*