Operating System - HP-UX
1752767 Members
5267 Online
108789 Solutions
New Discussion юеВ

Re: compile problem with 64bit statvfs

 
Ed Daraki_2
Occasional Advisor

compile problem with 64bit statvfs

I am compile errors on my code that uses the 64bit version of statvfs. My compiler is aCC A.03.33.
I really appreciate any help!

Thanks,
Ed
-------------------------------
#include
#include
int main(){
struct statvfs b;
int i;
i=statvfs ("/", &b);
return i;
}
------------------------------
$ aCC +DAportable -o stest stest.cpp -D_FILE_OFFSET_BITS=64

/usr/ccs/bin/ld: Unsatisfied symbols:
statvfs(const char *,statvfs *) (code)
$

2 REPLIES 2

Re: compile problem with 64bit statvfs

Ed,

I took your code snippet and compiled it on a HP-UX 11.0 64bit machine. It compiled and ran without problems. Strange.
Maybe you have environment variables set so that the compiler uses the wrong header files?
Also, the obvious remedy "have you installed all patches" comes to mind...

Regards

Martin
Ed Daraki_2
Occasional Advisor

Re: compile problem with 64bit statvfs

Hi Martin,

Thank you for your reply!
Are these the compiler patches or OS patches? I just purchased this system with a preinstalled OS and when I was installing the compiler I don't remember any option for instaling patches. Where do I find the patches? How to install them? Is there any installation guide for the compiler?

Thanks again for your help!
Ed