Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2201 Broken includes order.

WSL
unread
nobody
None
Bug
none
Unknown
False
2014-03-23
2014-03-23
Aleksey Chernov
No

wtypes.h -> rcp.h -> windows.h -> ole2.h -> objbase.h -> objidl.h

In objidl.h used type LPOLESTR, but not defined yet...

conftest.c:

include <wtypes.h>

gcc -c -O2 -pipe -W -Wall -o conftest.o conftest.c
failed...
log file attached.

$ gcc -v
Using built-in specs.
COLLECT_GCC=d:\mingwoff\bin\gcc.exe
COLLECT_LTO_WRAPPER=d:/mingwoff/bin/../libexec/gcc/mingw32/4.8.1/lto-wrapper.exe

Target: mingw32
Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32 --build=m
ingw32 --without-pic --enable-shared --enable-static --with-gnu-ld --enable-lto
--enable-libssp --disable-multilib --enable-languages=c,c++,fortran,objc,obj-c++
,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32-registry --enable-l
ibstdcxx-debug --enable-version-specific-runtime-libs --with-gmp=/usr/src/pkg/gm
p-5.1.2-1-mingw32-src/bld --with-mpc=/usr/src/pkg/mpc-1.0.1-1-mingw32-src/bld --
with-mpfr= --with-system-zlib --with-gnu-as --enable-decimal-float=yes --enable-
libgomp --enable-threads --with-libiconv-prefix=/mingw32 --with-libintl-prefix=/
mingw --disable-bootstrap LDFLAGS=-s CFLAGS=-D_USE_32BIT_TIME_T
Thread model: win32
gcc version 4.8.1 (GCC)

$ ld -v
GNU ld (GNU Binutils) 2.23.2

mingwrt-4.0.3

In mingw32-w64 this test are passed.

P.S. Sorry bad english...

1 Attachments

Discussion

  • Sorry bad formatting.
    file conftest.c:

    #include <wtypes.h>