NO

Author Topic: Do you know how to set Allegro Library to PELLES C ?  (Read 12122 times)

trimer34

  • Guest
Do you know how to set Allegro Library to PELLES C ?
« 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 ?

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Do you know how to set Allegro Library to PELLES C ?
« Reply #1 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; }

May the source be with you

trimer34

  • Guest
Re: Do you know how to set Allegro Library to PELLES C ?
« Reply #2 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..

JohanTim

  • Guest
Re: Do you know how to set Allegro Library to PELLES C ?
« Reply #3 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
« Last Edit: March 21, 2012, 05:44:13 PM by Christian »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Do you know how to set Allegro Library to PELLES C ?
« Reply #4 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 and Allegro 4.4.2 test project for those who want tackle with it.
« Last Edit: December 19, 2014, 01:06:27 PM by TimoVJL »
May the source be with you