![]() |
|
Problem upgrading to 5.2.4.1 now getting ALLEGRO_FONT error |
devo_au
Member #15,282
August 2013
|
Hey (again), C:####.cpp|216|error: invalid use of incomplete type 'ALLEGRO_FONT {aka struct ALLEGRO_FONT}'| This error is accompanied every time (over 50 its) with this explanation: c:\mingw\allegro\include\allegro5\allegro_font.h|48|note: forward declaration of 'ALLEGRO_FONT {aka struct ALLEGRO_FONT}'| I am running mingw32-gcc_g++ 6.3.0-1 with codeblocks (maybe this is the issue, maybe not) I will hack away as I do, because im in Australia, and your all asleep. Maybe I will get it going but if I can't and anyone is kind enough to assist me, that will be great. Thanks again. it wasn't me, it was other kids |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
It may be as simple as #include "allegro5/allegro_font.h". Well maybe that's not it. Did you change your compiler search directory for includes? Check your project settings for inconsistencies. 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 |
devo_au
Member #15,282
August 2013
|
Can't seem to add to this thread so just an update to my last post. - Updated to the i686 mingw-w64 version 7.2.0 - installed here c:\mingw-w64 maybe the way im referencing it has changed between 5.0.10 and the new one [LATER THAT DAY BCUZ I CAN'T ADD TO THE THREAD] //for instance: textY = (letBoard.mid + letBoard.halfCell) - (si->font18->height / 2);//start Y here This wasn't an issue in 5.0.10 but 5.2.4.1 doesn't want to know about it.. All of them, hmm, this means something [LATER STILL - SOLUTION....] al_get_font_line_height(si->font18));//case closed Thanks for your help Edgar. Now hopefully I can get it to build.. it wasn't me, it was other kids |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Yes, that would be an error with the way you're using the API then, not a build error. You can't access opaque structs directly, but only through the mechanism that allegro allows you to use. In your code, the struct hasn't been defined yet, so you can't access its members. In allegro code, they include a private header for the implementation of ALLEGRO_FONT, so they can access its members directly. This allows allegro to change it's backend at will, without breaking abi compatibility. You can't double post on this forum, only edit and send to top. But you can reply now. Did this fix your users issue with the half screen? 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 |
devo_au
Member #15,282
August 2013
|
All running and thanks for your help, moved on to minor improvements now. I haven't heard back from the guy with the screen issues. He probably game up in disgust. Dems the breaks. Or maybe it worked and he is like me, you only hear from them if there is something wrong. Pretty slack but thats the way most people are unfortunately. Allegro 5.2.4.1 is pretty good and I'm not changing it any time soon. it wasn't me, it was other kids |
|