2 Replies - 2183 Views - Last Post: 31 August 2007 - 04:06 AM Rate Topic: -----

#1 k0b13r  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 15
  • View blog
  • Posts: 243
  • Joined: 18-July 06

Allegro

Posted 26 August 2007 - 08:05 AM

Hi. This is not strictly game programming releted but ... I wrote some code using Allegro library, and I wanted to give .exe to my friend. He told me that program outputs error "missing alleg24.dll". I understand this, but what should I do to join it to .exe file ? I'm using Code::Blocks 1.0RC2 .
Thanks for fast answer
Is This A Good Question/Topic? 0
  • +

Replies To: Allegro

#2 Evilish  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 06-July 07

Re: Allegro

Posted 30 August 2007 - 11:30 PM

Allegro comes with the alleg24.dll file, he needs to have that in the same directory as the .exe to play

Don't think you can include the .dll code in your .exe

This post has been edited by Evilish: 30 August 2007 - 11:30 PM

Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is offline

  • Original Digital Gansta
  • member icon

Reputation: 4466
  • View blog
  • Posts: 24,917
  • Joined: 10-May 07

Re: Allegro

Posted 31 August 2007 - 04:06 AM

Just as a software set installs all required libraries (dlls & such) when you install a new piece of software, you'll need to provide the dll with your exe to your friend. The only way to avoid this is to not use functions that require such libraries. Or build yourself a custom header using the defines... but this usually doesn't work unless you know exactly how the software works with the dll.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1