Sign in to follow this  
keikei_c

HELP HELP HELP cannot run .exe

Recommended Posts

hi! i've been doing this openGL project..and its been running well whenever i execute it through MVC++..however, when I run the .exe file from the debug folder, it wont run and gives an error message that it has encountered an error and it needs to close..with all the send error report thing..please help.. i thought it was all working..well, if i run it again in C++ editor, it runs okay.

Share this post


Link to post
Share on other sites

Perhaps you have an issue with the working folders ? the program expects to find some files from the same directory as the exe is located ? When running from the compiler the working dir is the project folder. So move your exe there and see if it works.

You could create a logging file to mark up such problems (ie. file not found etc). Screaming exe doesn't work doesn't tell us much. You have more possibilities of finding the problem.

Cheers !

Share this post


Link to post
Share on other sites
When you run a project from within the IDE, then the IDE will take care of external dependancies (e.g. specified path for lib's). If you want to run the exe, you must make sure that all the depandant files are in the same folder as the exe.

Edit: Demus was faster :)

Share this post


Link to post
Share on other sites
Yeah, make sure all of your external libraries, textures, sound files, etc are accessable from where you are running it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this