From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,6a503aeb42164dd7,start X-Google-Attributes: gid1164f8,public From: beaumont@sesinsud.com (Bruno BEAUMONT) Subject: Using statfs or statvfs in C++ on DEC Date: 1999/09/23 Message-ID: <37ed2a8f.285007298@news.dial.oleane.net>#1/1 X-Deja-AN: 528640748 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@oleane.net X-Trace: minus.oleane.net 938093470 15176 195.25.220.179 (23 Sep 1999 13:31:10 GMT) Organization: SESIN Mime-Version: 1.0 NNTP-Posting-Date: 23 Sep 1999 13:31:10 GMT Newsgroups: comp.sys.dec I have to know filesystem's free space on a DEC alpha with OSF1 V4.0. I compile with egcs-2.91.66 C++ source code. I use statfs or statvfs. I achieved to compile in C but not in C++. Errors occur with statfs (at compilation time) and statvfs (at linking time): with statfs: statfs.cpp:83: no matching function for call to `statfs::statfs (char[256], statfs *)' /usr/include/sys/mount.h:429: candidates are: statfs::statfs(const statfs &) /usr/include/sys/mount.h:429: statfs::statfs() with statvfs: /usr/bin/ld: Unresolved: statvfs(char const *, statvfs *) collect2: ld returned 1 exit status Could anyone help me ? Thanks.