![]() |
| | #1 |
| Registered User Join Date: Jul 2005
Posts: 11
| getting to grips with allegro and ms vc++ (newbie) found out about the allegro library and it seems to be pretty cool, and i also have just aquired ms visual studio 6 and i am trying to get my first thing compiled but i cant seem to get it to work i made a new empty win32 c++ application i added a source file called main.cpp Code: #include <allegro.h>
int main (int argc, char *argv[])
{
allegro_init();
install_keyboard();
set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0);
readkey();
return 0;
}
END_OF_MAIN();
how do you go about compiling something like that? i am a TOTAL newbie so please be nice to me |
| jimjamjahaa is offline | |
| | #2 |
| Devil's Advocate Join Date: May 2004 Location: Out of scope
Posts: 3,778
| Is allegro.h in your compiler's include directory with the rest of your standard libraries? If it isn't then put it into the same directory as the your .cpp and change your include to Code: #include "allegro.h"
__________________ Terms of Service By quoting or replying directly to this post, you consent to the fact that all of the information in the post above is completely accurate and highly intelligent and no comments will be made towards its validity, thoughtlessness, and/or grammatical structure. Violators will be prosecuted to the fullest extent of the law. |
| SlyMaelstrom is offline | |
| | #3 |
| Registered User Join Date: Jan 2005
Posts: 847
| Go to project->settings and click on the link tab. Then add allegro.lib (I think thats it's name) to the list of objects. |
| Quantum1024 is offline | |
| | #4 | |
| Registered User Join Date: Jul 2005
Posts: 11
| END_OF_MAIN is an allegro function that you have to call after the end of the main (surprisingly) at least according to a tutorial im following. thanks for the tips, ill post with the results ![]() edit Quote:
*is confused* Last edited by jimjamjahaa; 11-18-2005 at 04:37 PM. | |
| jimjamjahaa is offline | |
| | #5 |
| Devil's Advocate Join Date: May 2004 Location: Out of scope
Posts: 3,778
| Is it being included in aldjgpp.h? ... well perhaps that's obvious. Check the internet perhaps, maybe you can find a copy of it.
__________________ Terms of Service By quoting or replying directly to this post, you consent to the fact that all of the information in the post above is completely accurate and highly intelligent and no comments will be made towards its validity, thoughtlessness, and/or grammatical structure. Violators will be prosecuted to the fullest extent of the law. |
| SlyMaelstrom is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|