Aha, I was trying to do this from a Win32 Console Project, but I needed to do it with a Win32 Project. Now there is a Linker directory under Configuration Properties.
(Thanks to
http://www.allegro.cc/docs/windows-msvc7-use.html)
I couldn't find the lib files or figure out how to make them so I decided to download the binaries instead of trying to compile and stuff that I don't understand. (
http://www.allegro.cc/files/)
Then I was finally able to use this, once I had lib files:
http://www.allegro.cc/docs/windows-msvc7-use.html
I dynamically linked. I'm not sure what that means.
I made the empty project, followed the instructions, created main.cpp and input the following code:
1 2 3 4 5 6 7 8 9
|
#include <allegro.h>
int main(void)
{
allegro_init();
allegro_message("Hello World");
return 0;
}
END_OF_MAIN();
|
Then compiled and ran but got the following error:
fatal error C1083: Cannot open include file: 'allegro.h': No such file or directory
|
...
then I copied the "include" directory from allegro to my "include" directory in MSVC7
that error gone, now a new one:
AllegroWin32Project fatal error LNK1104: cannot open file 'alld.lib'
|
probably the same issue
...
yep, copied "bin", "include", and "lib" from "allegro-msvc71-4.2.2" to ..."vc7"
all errors gone
compile and run...
AllegroWin32Project.exe - Unable To Locate Component
This application has failed to start becase alld42.dll was not found. Re-installing the application may fix this problem.
What now?... lol