PDA

View Full Version : C++ or Pascal compiler


dave164
October 30th, 2005, 09:42 PM
Is there a C++ and / or pascal compiler for breezy? If so what is the repository address / link

Cheers,
Dave164

oldmanstan
October 30th, 2005, 09:48 PM
g++ is a C++ compiler (part of gcc, gnu compiler collection, formerly gnu c compiler)

sudo apt-get install build-essential

or

use synaptic to install the build-essential package

this package includes all the stuff you need

gpc is the gnu pascal compiler, use synaptic and search for it

wmcbrine
October 31st, 2005, 04:13 AM
For Pascal, there's also Free Pascal ( http://www.freepascal.org/ ) -- very useful if you want to port old Borland/Turbo Pascal code.

wmcbrine
October 31st, 2005, 04:14 AM
please delete

dave164
October 31st, 2005, 01:38 PM
Hey, thanks ive installed them in synaptic, but how do i then run them :(

Sorry

Also when i try to install FreePascal i install the rtl then the gtk and the gtk says that the rtl is not installed...

oldmanstan
October 31st, 2005, 01:46 PM
i've never used either of the pascal compilers mentioned but they should work the same as gcc / g++

you can use g++ from the command line, open up a terminal window in gnome or whatever you use and type g++ --help

that will give you a basic overview of what you need to compile a simple program, you can also get anjuta (search synaptic) which is an IDE and works a little more like what you're probably used to in windows, see the help files for how to use anjuta

dave164
October 31st, 2005, 02:17 PM
re there any visible compilers like turbo pascal were you can see it all happening, or am i just silly :P

mostwanted
October 31st, 2005, 02:28 PM
You mean like an IDE? try Anjuta or Kdevelop.

oldmanstan
October 31st, 2005, 03:10 PM
re there any visible compilers like turbo pascal were you can see it all happening, or am i just silly :P
using a compiler from the command line still allows you to see error messages, etc. not really sure what you mean by "visual" but probably an IDE (integrated development environment) get anjuta (or kdevelop, good call on that one) then just use the help files to figure out what exactly to do (in anjuta F9 and F11 are compile and build and F3 runs your app)

LorenzoD
October 31st, 2005, 04:45 PM
re there any visible compilers like turbo pascal were you can see it all happening, or am i just silly :P

For Pascal/Object Pascal there's lazarus (http://lazarus.freepascal.org) which is a bit similar to delphi/kylix. It's not in the repositories yet, and honestly it was a bit unstable last time I tried it. If you're feeling a bit adventurous you could give it a try.