[LLVMdev] FileUtilities.cpp:72: error: aggregate `stat s' has incomplete type and cannot
Henrik Bach
henrik_bach_llvm at hotmail.com
Wed Jul 21 16:31:51 PDT 2004
Hi
As shown below, the .\configure script found a version of stat.h:
---------------------
configure:4382: checking for sys/stat.h
configure:4399: gcc -c -g -O2 conftest.c >&5
configure:4402: $? = 0
configure:4405: test -s conftest.o
configure:4408: $? = 0
configure:4419: result: yes
---------------------
However, I got this error when compiling:
---------------------
FileUtilities.cpp: In function `bool llvm::FileOpenable(const
std::string&)':
FileUtilities.cpp:72: error: aggregate `stat s' has incomplete type and
cannot
be defined
---------------------
By looking in include/Config/config.h:
---------------------
/* Define to 1 if you have the <sys/stat.h> header file. */
/* #undef HAVE_SYS_STAT_H */
---------------------
The macro is not set as expected.
It compiles when HAVE_SYS_STAT_H is set to 1.
/Henrik
_________________________________________________________________
Opret en gratis Hotmail-konto http://www.hotmail.com med udsigt til 250 MB
lagerkapacitet
More information about the llvm-dev
mailing list