Trouble compiling wxWindows plugin in Visual C++ 7.1
Posted: 16 Jan 2004 15:55
I try to build the wxWindows plugin in VC 7.1. I was successful in building wxWindows 2.4.2 library and all its samples and demos. However, when I try to build the VLC wxWindow plugin, I got such error:
"error C2628: '_off_t' followed by '__int64' is illegal (did you forget a ';'?)"
it points to the typedef line in wxWindow file filefn.h
#if defined(__VISUALC__) || ( defined(__MWERKS__) && defined( __INTEL__) )
typedef _off_t off_t;
This file didn't give me any trouble when I compiled wxWindow library and samples. Therefore, the trouble is related somehow to the VLC usage of the headers and defines. The VLC developer documentation (BTW, seems not updated since 2001) tells something about off_t data type and necessity to compile with -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98.
In VC++, the off_t is already defined as 64 bit, so the compiler option doesn't seem to be needed.
I am puzzled why compiling the library itself didn't give me any trouble.
Please help to resolve the situation.
"error C2628: '_off_t' followed by '__int64' is illegal (did you forget a ';'?)"
it points to the typedef line in wxWindow file filefn.h
#if defined(__VISUALC__) || ( defined(__MWERKS__) && defined( __INTEL__) )
typedef _off_t off_t;
This file didn't give me any trouble when I compiled wxWindow library and samples. Therefore, the trouble is related somehow to the VLC usage of the headers and defines. The VLC developer documentation (BTW, seems not updated since 2001) tells something about off_t data type and necessity to compile with -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98.
In VC++, the off_t is already defined as 64 bit, so the compiler option doesn't seem to be needed.
I am puzzled why compiling the library itself didn't give me any trouble.
Please help to resolve the situation.