Jump to content
  • Advertisement
Sign in to follow this  
HuskyMaster

How to make a program?

This topic is 2811 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I made a C++ project (really its only got one script) and I like it, i used an Allegro library. I want to send it to my friends, how do I make it into a program usable by my buddies who do not have dev-c++ and/or allegro installed?

Share this post


Link to post
Share on other sites
Advertisement

dev-c++ and/or allegro installed?

First off. Don't use dev-c++. Lots of people around here will come by with more convincing links. But get yourself a real compiler like Visual Studio Express 2010.

Secondly, all you should have to do is compile the program in "release" mode, and give the resultant exe to your friend (along with all the data files that you made for it if any).

Share this post


Link to post
Share on other sites

First off. Don't use dev-c++. Lots of people around here will come by with more convincing links. But get yourself a real compiler like Visual Studio Express 2010.

Secondly, all you should have to do is compile the program in "release" mode, and give the resultant exe to your friend (along with all the data files that you made for it if any).


Agreed - get Visual Studio 2010 express it's free and it's good. If you do this though, you will also have to distribute the Visual Studio runtimes if your friends do not also have VS 2010 installed.

[font="Calibri"]http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84&displaylang=en

[/font]

Share this post


Link to post
Share on other sites
Wow, that's a massive downside to MSVS in my eyes. I'm even more glad I don't use that IDE or compiler now.

Regarding Dev-C++, here's a link somebody else posted on here a long time ago. It's funny that given the amount of criticism I've heard, so many people still use it.

If you want a single exe file you can hand out:
1) get a compiler that doesn't need extra cruft installed on end-user machines (I use MinGW)
2) make sure Allegro and any other libraries are statically linked so you don't need to ship separate DLLs (some libs make this easier than others)
3) Compile in 'release' mode as above

All being well, you'll end up with one simple executable file to copy & share. When distributing software though, be aware of licensing law - Allegro 5 uses zlib copyright for instance. Static linking can come into this.

Share this post


Link to post
Share on other sites

[quote name='KulSeran' timestamp='1294812677' post='4757573']
First off. Don't use dev-c++. Lots of people around here will come by with more convincing links. But get yourself a real compiler like Visual Studio Express 2010.

Secondly, all you should have to do is compile the program in "release" mode, and give the resultant exe to your friend (along with all the data files that you made for it if any).


Agreed - get Visual Studio 2010 express it's free and it's good. If you do this though, you will also have to distribute the Visual Studio runtimes if your friends do not also have VS 2010 installed.

[font="Calibri"]http://www.microsoft...&displaylang=en

[/font]
[/quote]

Why is that? I've used Visual Studio 2008, and I didn't have to take any libraries with me. Is there something 2010 adds?

Share this post


Link to post
Share on other sites

Why is that? I've used Visual Studio 2008, and I didn't have to take any libraries with me. Is there something 2010 adds?

No, he's just wrong about it. You can statically link against the CRT with MSVC.

Share this post


Link to post
Share on other sites
Well, if you don't want to use Visual Studio, then use Code::Blocks. It is continually updated and has a large community behind it and other developing plugins for it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!