Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Adrielle on July 30, 2008, 12:57:26 pm
-
Hi!
I am really new to all of this stuff, and I have created a little program for my bf and want to send it to him. It builds and runs fine on code::blocks, but I was wondering if there is a way to export/save it as an application so I can send it to him.
Thanx,
Adrielle de la Viridian =)
-
What prevents you from sending the program per email?
-
It saves as something that does nothing when you try to open it. I think I did something wrong...
-
I think you need to be more specific about the problem, Adrielle. What files are you copying and trying to run? What operating system are you using? What sort of application is this? What programming language and compiler are you using? Have you tried running the program from a shell window (dos prompt on windows) so you can see if there are any error messages?
At a minimum, a codeblocks project has a project file (.cbp) and some source files (.cpp/.h). The project file contains the info that codeblocks needs to create the application binary (a .exe file on windows) from the sources. Once created, you should be able to copy and run that binary on any compatible system (i.e. if you compile on a windows machine using a standard windows compiler, the binary can be run on any other windows machine). If your project depends on external libraries (say a graphical toolkit like wxWidgets) then you will need to make sure the destination machine also has those libraries installed.