C language > Graphics programming
Do you know how to set Allegro Library to PELLES C ?
(1/1)
trimer34:
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 ?
TimoVJL:
PellesC can't compile this without error message:
--- Code: ---//#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; }
--- End code ---
trimer34:
Ho Ok.. Thanks for replaying.. I Guess it won't work or it will work partly..
Thanks..
JohanTim:
The library is written in the C programming language and designed to be used with C or C++. Deleted unnecessary link - Christian, Admin
TimoVJL:
Too heavy macros for PellesC
--- Code: ---Allegro\include\allegro5\internal\aintern_pixels.h(256): fatal error #1043: Input buffer overflow.
--- End code ---
ScanToolNet and Allegro 4.4.2 test project for those who want tackle with it.
Navigation
[0] Message Index
Go to full version