Able to compile and run app but only on my own computer - solved somehow (:

Started by
2 comments, last by Shump 15 years, 11 months ago
I tried out some SFML and AngelScript for the first time today and managed to combine those two, though in quite ugly coding I guess, but as I said; I was just experimenting. Anyway, the program worked and I was really proud of myself and I wanted to show it to some friends but when I shared my .exe he wasn't able to run it. No real error-message just complainment on the configuration of the file. I have searched every corner of Visual Studio 2005, which I am using, but can't find anything that seems to cause this. Though I'm quite a newbie when it comes to visual studio and I have to admit that I'm quite uncertain about the proper way to compile a project except using ctrl-shift-b. And since I got no error-message, I have not been very successful on searching the web. This is getting rather frustrating since I got the application working but can't share it with my friends so I asking you for help. I quess it's some sort of setting that's wrong in my solution so I'll share it together with the executable, which is not working. Visual Studio 2005 solution: http://www.4shared.com/file/47135141/b99c74e3/my_first_sfml.html Executable: http://www.4shared.com/file/47135986/855efff4/release.html Note: These do not contain the SDK:s I have used (http://www.sfml-dev.org/index.php, http://www.angelcode.com/angelscript/) nor have I changed the paths to the libraries and includes. In other word: nothing is changed and is exactly as it is on my computer. I really appreciate all help I can get and I understand if think that I'm bothersome that ask this much of help but I can't see any solution to this problem. [Edited by - Shump on May 11, 2008 3:44:03 AM]
Advertisement
You haven’t included the sfml libraries in the release directory.

From the SFML tutorial:
Quote:Your program should now compile, link and run fine. If you linked against the dynamic versions of the SFML libraries, donc forget to copy the corresponding DLLs (sfml-system.dll in this case) to your executable's directory, or to a directory contained in the PATH environment variable.


P.S. I haven’t checked your VS solution, but only your executable.

[Edited by - apatriarca on May 10, 2008 8:30:26 PM]
Hmm... no, I have linked to the libraries in the release configuration. But the SFML don't seem to be the problem. I compiled one of my other SFML programs, which do not use AngelScript, in the same solution and transfered over to my laptop and that worked correctly.

How does the compiler handle .lib-files? Do I need to send them along together with my application or does the compiler "bake" them into the application itself(as I thought it did).
YES! Solved the porblem! Don't really know how but I created a new project, added the libraries and the source-code and then it worked. I guess I've slipped wrong in the settings and turnd off/on something that I shuoldn't. Thanks for the help anyway (:

This topic is closed to new replies.

Advertisement