|
For some reason my code only runs from MinGWStudio... |
spiroth10
Member #6,182
September 2005
|
My code has absolutely no errors in it, and runs fine if I Run it from my Dev environment after compiling. However, when I try to run it without mingwstudio, it says there was an error in alleg42.dll... I just installed allegro 4.2 if that has anything to do with it...
|
Matthew Leverton
Supreme Loser
January 1999
|
Quote: bgmusic = load_midi("bgmusic.mid"); Check the return codes. If bgmusic == NULL, then your files aren't being loaded. |
spiroth10
Member #6,182
September 2005
|
... the music loads fine... the problem is the whole code works for me under mingwstudio, its just that when I run it from outside the program, it doesnt work. But when I click "Build and run" from mingwstudio, it runs perfectly with no error. otherwise it says there was an error in alleg42.dll... I think It has to do with me reinstalling allegro to get the new version... Im going to attach my program in a .zip... |
Jonatan Hedborg
Member #4,886
July 2004
|
Perhaps mingwstudio (whatever that is) runs the program from some obscure directory in which the correct version of alleg42.dll is?
|
spiroth10
Member #6,182
September 2005
|
I should have been more clear in describing what "MinGW Studio" is... the reason I think it doesnt run outside the interpreter has something to do with my updating allegro is because it worked fine with the old version, but I wanted to stay on edge, so I updated... The program itself seems to run fine (albeit its nowhere near finished). maybe I'll try deleting my environment and reinstalling, that might work... thanks for trying to help anyway, and sorry I was so brief in explaining my situation... |
ReyBrujo
Moderator
January 2001
|
Search for the dll. I guess it is inside MinGW Studio directory somewhere. Copy it to System32 and it should work. -- |
|