OGRECake.exe crash... linking issues?

The amazing Noob

22-01-2009 15:32:46

Hey all,

I'm relatively new to C++, but I've worked with other programming languages before. This one has me stumped, though.

I've tried building the BloodyCake project several times. I found loads of linking errors, which I solved by adding some additional library directories under the linker tab of each project's properties in VC++2008. I finally got the solution to build, but when I try to run the newly created OGRECake.exe, I wind up with error messages such as

"This application has failed to start because OgreMain_d.dll was not found. Re-installing the application may fix this problem."

Now, if I'm correct, the project wouldn't have been able to compile without knowing where this file was since it's specifically listed under the "additional dependencies" section of that project. Wouldn't it have thrown an error and failed to build?

Quite confusing. Has anyone encountered this before?
Thanks.

The amazing Noob

22-01-2009 21:26:56

Ok...

So I was looking at another addon for Ogre and they said to just copy and paste the 'missing' dll files to the directory that the EXE is located in.

While this works (woohoo!), is there any more elegant way to link a .dll file to an exe?