Pelles C forum
C language => Graphics programming => Topic started by: trimer34 on November 20, 2010, 05:23:40 AM
-
Hi guys..
Am new to programing in general,for a couple months I've been using Pelles c for my c console programming. I have been experimenting with graphics / games in ALLEGRO Lybrary using DevC++ to compile the source but I just don't get use to it.
does somebody here knows how to set allegro library to work with PELLES C ?
-
PellesC can't compile this without error message:
//#define ALLEGRO_SRC
//#define ALLEGRO_STATICLINK
/* describe how function prototypes look to MSVC */
#if (defined ALLEGRO_STATICLINK) || (defined ALLEGRO_SRC)
#define _AL_DLL
#else
#define _AL_DLL __declspec(dllimport)
#endif
#ifdef AL_INLINE
#define END_OF_INLINE(name) void *_force_instantiate_##name = name;
#else
#define END_OF_INLINE(name)
#endif
#undef AL_INLINE
#define AL_INLINE(type, name, args, code) __inline _AL_DLL type __cdecl name args code END_OF_INLINE(name)
#define INLINE __inline
AL_INLINE(void, foo1, (int* addr, int c),
{
return;
})
__inline __declspec(dllimport) void __cdecl foo2(int* addr, int c){ return; }
-
Ho Ok.. Thanks for replaying.. I Guess it won't work or it will work partly..
Thanks..
-
The library is written in the C programming language and designed to be used with C or C++. Deleted unnecessary link - Christian, Admin
-
Too heavy macros for PellesC
Allegro\include\allegro5\internal\aintern_pixels.h(256): fatal error #1043: Input buffer overflow.
ScanToolNet (http://sourceforge.net/projects/scantool/) and Allegro 4.4.2 (https://www.allegro.cc/files/?v=4.4) test project for those who want tackle with it.