![]() |
|
Error with allegro please help .. |
Adix88
Member #8,467
March 2007
|
hey , i`m building a game using allegro library but i get the following error message .. do u know what might be the problem ?
What could be the problem? I don't have any variables or functions by these names: |
GullRaDriel
Member #3,861
September 2003
![]() |
These are not real errors, these are WARNING. You are passing a float where the function wait an int. cars.cpp:17: warning: passing `float' for converting 3 of `void rotate_sprite(BITMAP*, BITMAP*, int, int, fixed)' cars.cpp:17: warning: passing `float' for converting 4 of `void rotate_sprite(BITMAP*, BITMAP*, int, int, fixed)' cars.cpp:17: warning: passing `float' for converting 3 of `void rotate_sprite(BITMAP*, BITMAP*, int, int, fixed)' cars.cpp:17: warning: passing `float' for converting 4 of `void rotate_sprite(BITMAP*, BITMAP*, int, int, fixed)' The others are not allegro related, but these are real errors.
You are using a third party library which you are not linking against. Looks like you need to link this "taste desenar" library, who is using the functions you do not know. "Code is like shit - it only smells if it is not yours" |
CGamesPlay
Member #2,559
July 2002
![]() |
Quote: Looks like you need to link this "taste desenar" library, who is using the functions you do not know. Gull, "multiple definitions" isn't the same as "undefined reference"... If fact, it's the opposite Quote: i`m building a game using allegro library but i get the following error message .. do u know what might be the problem ? It has nothing to do with Allegro. You are #including cpp files. Stop it. You know how to create a header file? Do that, then #include the header file. -- Ryan Patterson - <http://cgamesplay.com/> |
Adix88
Member #8,467
March 2007
|
Quote: It has nothing to do with Allegro. You are #including cpp files. Stop it. You know how to create a header file? Do that, then #include the header file.
Thx .. this was the problem .. my game works now |
GullRaDriel
Member #3,861
September 2003
![]() |
Arf :p My eyes were aimed by the bolded text who said "first defined here" :p I did copy paste the code but without noticing the multiple definition ;-) Anyway his problem is now solved. But ... Hey ! Wait ! Adix88 , You are a cookie scrooge, aren't you ? ! "Code is like shit - it only smells if it is not yours" |
|