Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » trouble with dll

This thread is locked; no one can reply to it. rss feed Print
trouble with dll
William Labbett
Member #4,486
March 2004
avatar

hi, have just recompiled the latest SVN and I'm getting this when I run my game :

{"name":"602062","src":"http:\/\/static.allegro.cc\/image\/cache\/f\/e\/fe3c2caab7a4ac3597f5c8824d6e0222.jpg","w":515,"h":198,"tn":"http:\/\/static.allegro.cc\/image\/cache\/f\/e\/fe3c2caab7a4ac3597f5c8824d6e0222"}602062

I know I should know this by now but where does the computer search for the dll's when it runs a program ? Is it MinGW or where it was installed or is it Windows/system ?

I need to know so I can be sure it's calling the new dll.

I did run mingw32-make install.

Trent Gamblin
Member #261
April 2000
avatar

There is no longer the concept of a current display. The closest thing is the current target bitmap. al_set_target_bitmap(al_get_backbuffer(display)) should be equivalent to al_set_current_display(display) now.

William Labbett
Member #4,486
March 2004
avatar

Thing is, according to the search facility, there are no calls to al_set_current_disply in my code.

torhu
Member #2,727
September 2002
avatar

Could be you're using an old import library, that still contains the symbol that is now gone from the DLL.

William Labbett
Member #4,486
March 2004
avatar

I'm definitely linking to the .a files made by mingw32-make.

I put the dlls in the bin/Debug directory of my project.

..and I'm still getting the message.

Could it be the wrong dll is being called ?

torhu
Member #2,727
September 2002
avatar

The DLL in the same directory as the executable takes priority. If that's what you're already doing, try doing a complete rebuild of your app.

William Labbett
Member #4,486
March 2004
avatar

Thanks Torhu.

I think it might be because a dll I made uses an older allegro dll with the same name. Is this what you meant earlier ?

Thomas Fjellstrom
Member #476
June 2000
avatar

When you upgrade WIP allegro versions, you MUST recompile all code using allegro. No ifs ands or buts.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro SVN Snapshots] - [Allegro TODO] - [Web Hosting]
"God Bless Joe Pesci" -- George Carlin
"Goto is the buldozer of coding. Sometimes, the buldozer is just the right tool for the job. Not often, but sometimes." -- LordBob

Go to: