5 Replies - 442 Views - Last Post: 09 February 2013 - 08:43 AM Rate Topic: -----

#1 RodrigoCastiel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 07-February 13

Allegro C++ Code::Blocks error.

Posted 08 February 2013 - 01:59 PM

Hello, I'm new here.
I'm trying to develop my version of Snake Game in C++ (with Allegro)
and I was using DevC++ in Windows 7. However, now, I'm
using Code::Blocks, with MINGW compiler.
I installed manually Allegro 4.22, but when I try to build
the program, there is an ERROR:

ld.exe||cannot find -lalfont|

I would like to know if someone knows where I can
download this file and where I should put it.

Rodrigo

Is This A Good Question/Topic? 0
  • +

Replies To: Allegro C++ Code::Blocks error.

#2 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 778
  • View blog
  • Posts: 2,307
  • Joined: 20-March 10

Re: Allegro C++ Code::Blocks error.

Posted 08 February 2013 - 10:52 PM

Hi

Its a link error

It cannot find alfont library


Could be an Allegro font library is missing

Snoopy.
Was This Post Helpful? 0
  • +
  • -

#3 RodrigoCastiel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 07-February 13

Re: Allegro C++ Code::Blocks error.

Posted 09 February 2013 - 05:45 AM

Thank you for reply, but

I know that it is a link error,
but I could not find where I can
download...

Another thing, I created a Console
Project with Code::Blocks and I en-
countered the same link error.

Rodrigo
Was This Post Helpful? 0
  • +
  • -

#4 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 778
  • View blog
  • Posts: 2,307
  • Joined: 20-March 10

Re: Allegro C++ Code::Blocks error.

Posted 09 February 2013 - 07:29 AM

Well,

ALFont is broken apparently and should be replaced according to the instructions here

http://opensnc.sourceforge.net/alfont/

Snoopy.
Was This Post Helpful? 1
  • +
  • -

#5 RodrigoCastiel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 07-February 13

Re: Allegro C++ Code::Blocks error.

Posted 09 February 2013 - 08:05 AM

Thank you!

You saved my holiday project!
Was This Post Helpful? 0
  • +
  • -

#6 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 778
  • View blog
  • Posts: 2,307
  • Joined: 20-March 10

Re: Allegro C++ Code::Blocks error.

Posted 09 February 2013 - 08:43 AM

Your Welcome...

However simply googling libalfont.a would have provided you with the solution.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1