|
From: Bill W. <bil...@at...> - 2002-10-05 15:50:25
|
Hello all!
This is a two-part appeal:
I am have having difficulty porting some code from our borland 5.02 C++ =
and our Sun Solaris C++ compilers. We build this code (libraries and =
CGI executable drivers) on both platforms and I am trying to consoidate =
our codebase to one compiler (gcc) for both environments.
I am getting the following messages when there is a module using the =
lstat and getwd structs defined in sys/stat.h
'implicit declaration of function int getwd(...)' and
'implicit declaration of function int lstat(...)'
The actual code is prety straight-forward:
int stat_value;
struct stat statv;
struct stat dbuf;
struct dirent *dirent_save;
getwd(dirnow);
buf =3D opendir(dirnow);
stat_value =3D stat(dirent_save->d_name,&dbuf);
if(dirent_save->d_name[0] !=3D '.')
lstat(dirent_save->d_name,&statv);
I need help in trying to resolve this.
Secondly, we also use the sqltypes.h header and it reports tons of =
errors due to some intrinsic types that do not seem to be defined. Does =
anyone know what additional headers need to be pulled in if sqltypes.h =
is used?
Thanks in advance
Bill
|