


\.\.\.\allegro\include\allegro5\file.h|33|note: in expansion of macro 'AL_METHOD'| \.\.\.\allegro\include\allegro5\platform\almngw32.h|55|error: expected identifier before '*' token| ||= Build: Debug in b (compiler: GNU GCC Compiler) =| Once I get by that bit I get the following error messages. I still get the error regarding off64_t, and renaming this as _off64_t still works as a get around. I've just given it another go using the 4.7.X binaries and unfortunately I have a very similar problem. I had tried the 4.7.X binaries originally but also ran into problems which I assumed was from the version number. I was under the impression that libraries needed to be built with the same version of mingw as the final project was compiled in for compatibility. Some additional information - I'm running the latest version of mingw (I believe 4.8.1) with codeblocks on a 64 bit windows 7 system. Does anyone have any idea what I'm doing wrong? This is really frustrating for me as I've had a few weeks off work and was really hoping to get some dev work done but I've been unable to get allegro working.

It seems likely that the problems are related, given that they both talk about this off_t variable.Ĭ:\mingw\include\allegro5\file.h|33|error: expected identifier before '*' token|Ĭ:\mingw\include\allegro5\file.h|33|error: 'off_t' declared as function returning a function|Ĭ:\mingw\include\allegro5\fshook.h|75|error: expected identifier before '*' token|Ĭ:\mingw\include\allegro5\fshook.h|75|error: 'off_t' declared as function returning a function|Ĭ:\mingw\include\allegro5\fshook.h|101|error: 'off_t' does not name a type|Īt this point googling the problem is no longer helping and I'm completely stuck. This allowed me to get past the initial errors but ended up turning up more errors as shown below. A quick google suggested that renaming the instances of off64_t to _off64_t should fix the problem. However, trying to compile a simple test program resulted in errors in io.h due to off64_t being undefined. I then set up my codeblocks project (in terms of linking etc) as described by this article on the wiki. I managed to get around this problem using the information in this thread. There was one error in the compilation process and it crashed at 26%. Hopefully someone can help me with this.Īs there are no allegro binaries available for the latest mingw version, I have compiled my own using the guide from the Wiki.

In the past I have had zero problems setting it up and I have no idea whats changed. I've been trying to get back into some game dev using allegro recently, but every time I try to get my development environment set up I keep running into various problems and I give up for another week.
