Hello all on the list,
I'm using clean TDM-GCC64 instalation specifically version
'tdm64-gcc-4.7.1-3" downloaded from:
http://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/tdm64-gcc-4.7.1-3.exe/download
I'm having problems with this kind of compile errors when compiling my
project...
gcc ../src/os/host-text-api-agg.cpp -c -m64 -DTO_WIN32 -DREB_EXE -O2
-DUNICODE -DCUSTOM_STARTUP -D_FILE_OFFSET_BITS=64 -I. -I../src/include/
-I ../src/codecs/ -o objs/host-text-api.o
In file included from
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/winnt.h:1472:0,
from
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/windef.h:139,
from
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/windows.h:69,
from ../src/os/../agg/agg_font_win32_tt.h:19,
from ../src/os/../agg/agg_truetype_text.h:38,
from ../src/os/host-text-api-agg.cpp:40:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/intrin.h:235:5:
error: declaration of C function 'long int
_InterlockedDecrement(volatile long int*)' conflicts with
In file included from
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/windef.h:139:0,
from
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/windows.h:69,
from ../src/os/../agg/agg_font_win32_tt.h:19,
from ../src/os/../agg/agg_truetype_text.h:38,
from ../src/os/host-text-api-agg.cpp:40:
...quite a lot of almost the same errors follows in the console, just
with different Interlocked<something> function declaration.
As I understand it the problem lies in the fact that:
1. I'm including: #include "windows.h" from my sources
2. then windows.h includes windef.h
3. windef.h includes winnt.h
4. winnt.h includes intrin.h where all the Interlocked<something> funcs
are declared
5. right after that windows.h includes winbase.h
6. in winbase.h around line 805 the Interlocked<something> funcs are
declared again
So I think the problem is in the TDM64 headers. Is there any "clean" way
how to solve that without touching the headers directly?
Thanks
Richard
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public