|
|
| Allegro and libcurl problem |
|
Schyfis
Member #9,752
May 2008
|
I finally figured out how to use libcurl's simpler functions, but when I combine it with Allegro by including allegro.h I get some compiler errors. 22 C:\Dev-Cpp\include\windows.h:52, from C:\Dev-Cpp\include\winsock2.h In file included from C:/Dev-Cpp/include/windows.h:52, from C:/Dev-Cpp/include/winsock2.h 51 C:\Dev-Cpp\include\winsock2.h:22, from C:\Dev-Cpp\include\curl\multi.h from C:/Dev-Cpp/include/winsock2.h:22, from C:/Dev-Cpp/include/curl/multi.h 1426 C:\Dev-Cpp\include\curl\multi.h:51, from C:\Dev-Cpp\include\curl\curl.h from C:/Dev-Cpp/include/curl/multi.h:51, from C:/Dev-Cpp/include/curl/curl.h 13 C:\Dev-Cpp\include\curl\curl.h:1426, from Examples\libcurl\simple.c from C:/Dev-Cpp/include/curl/curl.h:1426, from Examples/libcurl/simple.c 13 C:\Dev-Cpp\Examples\libcurl\simple.c from Examples/libcurl/simple.c 1222 C:\Dev-Cpp\include\wingdi.h conflicting declaration 'typedef struct tagBITMAP BITMAP' 276 C:\Dev-Cpp\include\allegro\gfx.h 'BITMAP' has a previous declaration as `typedef struct BITMAP BITMAP' 1222 C:\Dev-Cpp\include\wingdi.h declaration of `typedef struct tagBITMAP BITMAP' 276 C:\Dev-Cpp\include\allegro\gfx.h conflicts with previous declaration `typedef struct BITMAP BITMAP' 1222 C:\Dev-Cpp\include\wingdi.h declaration of `typedef struct tagBITMAP BITMAP' 276 C:\Dev-Cpp\include\allegro\gfx.h conflicts with previous declaration `typedef struct BITMAP BITMAP' 1222 C:\Dev-Cpp\include\wingdi.h declaration of `typedef struct tagBITMAP BITMAP' 276 C:\Dev-Cpp\include\allegro\gfx.h conflicts with previous declaration `typedef struct BITMAP BITMAP' C:\Dev-Cpp\Makefile.win [Build Error] [Examples/libcurl/simple.o] Error 1 I'm including allegro.h, stdio.h, iostream, and curl.h. It fails to compile immediately after I include allegro.h. Is there some trick to getting Allegro and cURL to play nice together, or am I doing something wrong again? ________________________________________________________________________________________________________ |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Looks like libcurl is including windows.h, this conflicts with Allegro. Read the manual on Windows Specifics. I think you need to do : // #include <allegro.h> #include <winalleg.h> #include <curl.h> //
My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|
Schyfis
Member #9,752
May 2008
|
It works like a charm, thank you! ________________________________________________________________________________________________________ |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
++Edgar's cookies Cookie is for me! My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|
|