Pelles C forum

C language => Graphics programming => Topic started by: trimer34 on November 20, 2010, 05:23:40 AM

Title: Do you know how to set Allegro Library to PELLES C ?
Post 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 ?
Title: Re: Do you know how to set Allegro Library to PELLES C ?
Post by: TimoVJL on November 20, 2010, 07:43:30 PM
PellesC can't compile this without error message:
Code: [Select]
//#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; }

Title: Re: Do you know how to set Allegro Library to PELLES C ?
Post by: trimer34 on November 21, 2010, 07:18:37 PM
Ho Ok.. Thanks for replaying..  I Guess it won't work or it will work partly..
Thanks..
Title: Re: Do you know how to set Allegro Library to PELLES C ?
Post by: JohanTim on March 21, 2012, 04:45:21 PM
The library is written in the C programming language and designed to be used with C or C++. Deleted unnecessary link - Christian, Admin
Title: Re: Do you know how to set Allegro Library to PELLES C ?
Post by: TimoVJL on December 18, 2014, 04:30:12 PM
Too heavy macros for PellesC
Code: [Select]
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.