Author Topic: How to export projects in a form that can be used/emailed  (Read 4147 times)

Adrielle

  • Guest
How to export projects in a form that can be used/emailed
« 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 =)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: How to export projects in a form that can be used/emailed
« Reply #1 on: July 30, 2008, 01:32:22 pm »
What prevents you from sending the program per email?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Adrielle

  • Guest
Re: How to export projects in a form that can be used/emailed
« Reply #2 on: July 31, 2008, 04:35:46 am »
It saves as something that does nothing when you try to open it. I think I did something wrong...

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: How to export projects in a form that can be used/emailed
« Reply #3 on: July 31, 2008, 04:52:52 pm »
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.