Difficulty compiling on Windows
mayna azevedo

Hello everybody.

I have a game in C with the allegro library, and it compiles perfectly on Linux. However, I'm not so lucky on Windows. I use the following command line in the Windows terminal:

gcc Dino_Pescocudo.c Dino_Pescocudo -lallegro -lallegro_font -lallegro_ttf -lallegro_image -lallegro_primitives -lallegro_audio -lallegro_acodec

And it's gives the following error (attached)

Here's the code:

Can anyone help me? So many thanks

Edgar Reynaldo

Your compiler isn't picking up your includes. It's either because it doesn't look where they are, or you haven't told it to look there.

The proper way to install a library is to a different directory than your compiler and then use compiler flags to tell it where it is.

-I c:\path\to\includes

-L c:\path\to\lib