2
« on: March 17, 2012, 06:26:12 am »
Ok, so I feel like this issue has definitely been brought up before, by my time combing google results and the posts here have not found me a solution thus far.
Basically, I recently downloaded SFML-1.6 for codeblocks w/mingw. I set up the search directories for the compiler and linker and added the library path with all of the DLL's to my system path. Then I restarted (best way I know to make sure the PATH variable has been updated). After that, I started up codeblocks, wrote out the example clock program, and compiled it. Then I tried to run it, but got an error about sfml-system.dll missing from the system. I open up a command promp, echo %SHELL%, the directory with the dll's is still there...
Next, I try just copying all of the DLL's into the C:\Windows\System32 directory. I don't really like doing this because of the clutter in there, but I figure it has to work. I restart (for good measure) and start up codeblocks again. Compile -> run, same error pops up.
Finally, I just want the program to run. I copy sfml-system.dll into my codeblocks project directory, try to run it again, it works.
So basically, does anyone have any idea why the system was unable to find the DLL's until I just put them directly in the project folder? I suppose I can copy them whenever I start a new project, but that means another step to the process (not to mention the horror of updating SFML with all of those distributed DLL's), so I'd really like to get it working through the path.
Just in case it matters, I am running the Windows 8 Consumer Preview. If you need/want any other info about my setup, just ask.
And again, I am sorry if this has already been posted and solved, but I was unable to find it. All I saw were one or two users with the same problem and threads with no responses. Hopefully that doesn't happen here...