Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » allegro5/platform/alplatf.h - not found

Credits go to Thomas Fjellstrom for helping out!
This thread is locked; no one can reply to it. rss feed Print
allegro5/platform/alplatf.h - not found
GregTheTraceur
Member #15,588
April 2014

I'm continuing my game-making journey with a step into C++ and I'm trying to use allegro. I'm using Microsoft Visual Studio, I think the 2013 version. I believe I am using allegro 5.0? Not the one that's currently an unstable beta, but the version just before that.

Anyway, I followed this guide: http://wiki.allegro.cc/index.php?title=Windows,_Visual_Studio_2010_and_Allegro_5

My 'project' is failing to build. Error message: c:\allegro\include\allegro5\internal\alconfig.h(28): fatal error C1083: Cannot open include file: 'allegro5/platform/alplatf.h': No such file or directory

Anyone know how I can go about fixing this?
Thanks in advance!

Thomas Fjellstrom
Member #476
June 2000
avatar

That file is generated at build time I think. Assuming you downloaded the right zip file it should be included. Did you download the source zip? Or the msvc binaries?

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

GregTheTraceur
Member #15,588
April 2014

I downloaded allegro-5.0.10.zip

Was I supposed to grab a different file?

Thomas Fjellstrom
Member #476
June 2000
avatar

Yes, the tutorial says to download something like: allegro-5.0.x-msvc-10.0.zip from http://allegro.cc/files ie: this file

The file you downloaded is the source, and does not have the generated headers, or precompiled libs.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

GregTheTraceur
Member #15,588
April 2014

Well gosh. I feel silly.

It's compiling now, at least! I'm missing a .dll, but I'm confident I'll be able to troubleshoot from here on my own. Thanks a million!

Go to: