Create a game standalone . exe in Visual Studio

Asked

Viewed 156 times

0

I need to release a game but want to create a standalone . exe, because when VS finishes the compilation creates the . exe but together are the dll’s of the game, I wanted it to stay only the . exe to be able to distribute. I know it will get heavier so.

Game made in C++, version of VS is 2013.

In this link a person responds how to do but I could not.

http://discuss.cocos2d-x.org/t/isnt-it-possible-to-create-a-standalone-exe-of-my-game/23765

I’m new in this area, so if any of you can help me I’d really appreciate it.

  • Depends on what you’re doing. If you are using external libraries that are naturally separate it is not very easy to do that (and I am being cautious, in fact nobody does it). If libraries allow you to do everything right there. Only you would have to post a specific problem. Saying you can’t do it without giving details won’t produce good answers. As what was posted the best answer you can get is already on link supplied.

  • Yes they are external and internal libraries. But I don’t understand exactly how to do what this link is. It would be to post the game on Steam and it asks to be a standalone . exe. I use the cocos2d-x library (among others) as in the link.

  • 1

    You have to [Dit] the question and put details about what you are doing, otherwise it is impossible to answer. Anyway it is unlikely that Steam will require this, there is a lot of game that can not do this way and I’ve picked up several games there that are not so.

  • Jessica, I’m not going to post as an answer because it’s not your question, but here it goes: A Standalone executable would be any software that doesn’t need third-party (unmatched) software to work. This includes compiled applications, even if they include third-party Dlls. What Steam does not accept in this case are interpreted programs (for example, that require Java Virtual Machine or a Python interpreter to work, or that require a library that is not included in the software). I hope I’ve cleared your doubt on this.

  • In case you want to create only one executable, without Dlls you should search for information about static linkage. Most library developers do not provide the static linkage option (usually .lib files), but do provide Dlls (dynamic linkage libraries). More information about this can be found in this question: http://answall.com/questions/44269/qual-a-diferen%C3%A7a-de-dll-e-lib

  • Well I’m sorry if I couldn’t get past my problem, but you still helped me is a lot. Thank you

  • Usually several programs use dlls, the Chrome browser has numerous dlls, games like GTA as well. What you need is to create an installer for the game

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.