473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

allegro newbie error

134 100+
I'm guessing this is a stupid question, but this won't compile in Dev-C++(Bloodshed)

Expand|Select|Wrap|Line Numbers
  1. #include <allegro.h>
  2. int main(){
  3.  
  4.     allegro_init();
  5.     install_keyboard();
  6.     set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
  7.     readkey();
  8.     return 0;
  9. }   
  10. END_OF_MAIN(); 
  11.  
[Linker error] undefined reference to `_WinMain'
[Linker error] undefined reference to `_install_allegro_version_check'
[Linker error] undefined reference to `install_keyboard'
[Linker error] undefined reference to `set_gfx_mode'
[Linker error] undefined reference to `readkey'
ld returned 1 exit status

thanks
May 22 '07 #1
3 6019
ilikepython
844 Expert 512MB
I'm guessing this is a stupid question, but this won't compile in Dev-C++(Bloodshed)

Expand|Select|Wrap|Line Numbers
  1. #include <allegro.h>
  2. int main(){
  3.  
  4.     allegro_init();
  5.     install_keyboard();
  6.     set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
  7.     readkey();
  8.     return 0;
  9. }   
  10. END_OF_MAIN(); 
  11.  



thanks
Make you sure you have linked to the correct files. Go to Project -> Project Options -> Parameters and click on "Add object or LIbrary". Then add the correct allegro library file. I don't know much about allegro so I'm not sure if this will solve your problem.
May 22 '07 #2
lumpybanana247
134 100+
that solved my problem. this unlocks a whole new level of coding. lol

thank you
--Nate
May 22 '07 #3
ilikepython
844 Expert 512MB
that solved my problem. this unlocks a whole new level of coding. lol

thank you
--Nate
No problem. :()

,.,.
May 22 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Karol | last post by:
I wonted to write programs with allegro library under Windows so I have downloaded Dev-c++, allegro library, mingw32 and dx70 for mingw. I configured allegro under mingw32 and installed Dev-c++. I...
6
by: pkochanek | last post by:
Hi, my program is using both allegro.h and windows.h, but during compilling it i'm getting a lot of errors like "conflicts with previous declaration typedef struct BITMAP BITMAP". Problem is...
1
by: HugoScripts | last post by:
hi there, as i said i'm trying to compile a simple program that uses allegro, it's a small thing, indeed my goal was just to start using allegro, but until now i'm unable even to compile my simple...
1
by: K. | last post by:
Witam! Mam nietypowe, a moze i typowe pytanie.... Napisalem od poczatku do konca strone internetowa w darmowym jezyku PHP nt. muzycznych List Przebojow. Program najbardziej bylby przydatny dla...
3
PieCook
by: PieCook | last post by:
Error message: "The application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem." Basically, I recently purchased a game programming...
10
by: Firecore | last post by:
Anyone here familiar with the allegro game library? I have some code that does not work: //This is a small test for allegro #include <allegro.h> #define WHITE makecol(255, 255, 255)
1
by: drsmooth | last post by:
i am trying to get the allegro graphics library to work on my computer, im using visual c++ 6, i downloaded the binary version and copied the files to the right directories but then when i compile...
1
by: KefkaIIV | last post by:
I use Dev C++ and bought a book called Game Programming All in One which cost $60 - and it cannot be returned if I rip the CD out - which I did. I had every intention of buying this book, and still...
4
by: silverleaf | last post by:
I'm starting to learn how to use the Allegro library with C++ on my own. My compiler is MSVisual C++ 6.0. The book I am learning out of is "Game Programming All In One, Third Edition" by Jonathan...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.