View Full Version : compiler like Dev_C++
black
07-07-2002, 08:56 PM
Hi,folks~
I installed linux last weekend, and so sad for some unexpected reason I couldnt enter my Windows OS now. as known I am learning C++, currently I should keep learning it with linux. And my soft in Win OS is Dev-C++, it is much convenient and small, could any compiler like it available in linux ?
thanx in advance~:rolleyes:
starX
07-07-2002, 11:23 PM
Don't take this the wrong way, but I'm not sure exactly what you're asking. I think the answer is "g++", which should already be installed. On the command line, try running g++, and see if you get anything besides "file not found"
starX
www.axisoftime.com
black
07-07-2002, 11:45 PM
Originally posted by starX
Don't take this the wrong way, but I'm not sure exactly what you're asking. I think the answer is "g++", which should already be installed. On the command line, try running g++, and see if you get anything besides "file not found"
starX
www.axisoftime.com
sorry I'm newbie to linux, did you mean I have had a compiler already ? is it a simply compiler or some kind of software ? Maybe I need a software which contains a compiler and IDE. :rolleyes:
starX
07-08-2002, 12:09 AM
g++ is command line driven. If you've writtn a file hello.cpp you would compile it with "g++ hello.cpp"
starX
www.axisoftime.com
black
07-08-2002, 12:14 AM
Originally posted by starX
g++ is command line driven. If you've writtn a file hello.cpp you would compile it with "g++ hello.cpp"
starX
www.axisoftime.com
then where should I write codes ? inside something like notpad ?:rolleyes:
SilentStrike
07-08-2002, 01:24 AM
I use kate, which is somewhat like notepad++ (filelist, syntax highlighting, console all built in), for small stuff. I use KDevelop for big stuff. A lot of Unix types prefer the older, popular editors, vi and emacs, but they keyboard sequences for them seem downright obtuse coming from experience only in windows.
black
07-08-2002, 01:29 AM
Originally posted by SilentStrike
I use kate, which is somewhat like notepad++ (filelist, syntax highlighting, console all built in), for small stuff. I use KDevelop for big stuff. A lot of Unix types prefer the older, popular editors, vi and emacs, but they keyboard sequences for them seem downright obtuse coming from experience only in windows.
Small and convenient, that's what I want~:D
SilentStrike, Would you mind indicating me how could I get it ?
Troll_King
07-08-2002, 06:11 AM
They come with the KDE desktop. You ned to include KDE during installation. I myself am learning Emacs because it is extremely powerful. It is true that it is much different than most of us are used to, however it is classic and it is available for nearly every platform.
It is very difficult to have Microsoft and Linux on the same hard drive because Microsoft in very inflexible. They do not want you to use Linux. Personally I have two hard drives. One for Linux, and one for Windows. It is a duel boot setup. I could tell you how to set yours up like that as long as you have two separate hard disks and Win2k professional as the Microsoft OS. I actually have two computers both duel boot Linux and Win2k.
[EMOBA]
07-08-2002, 12:04 PM
Dev-C++ is availible for Linux. you can find it at http://http://sourceforge.net/projects/dev-cpp/
it looks like you'll have to compile it from source, which might seem overwhelming to you at first. it's really easy. just make sure to read all of the documentation that comes with the code...
raimo
07-08-2002, 01:26 PM
Though they would seem old, Emacs and Vi are the basic editors when you are coding in Unix environment. You should learn them even if you are going to use just one (or neither ;)) of them. Linux usually comes with all development tools needed. At least the most common distributions include gcc compiler, Vi, Emacs and gdb debugger. KDevelop comes with KDE.
And installing linux on the same hard drive than Windows is easy. Get GNU Parted, it is a free tool for creating partitions. Create Linux partitions with the boot disk version of Parted which will use a small floppy-Linux. Rawrite.exe is used to create the boot disk in Windows. Usually it's preferable to install Linux AFTER Windows.
I use Anjuta (http://anjuta.sourceforge.net/) to write the source code and then a makefile to build the project. The IDE has lots of great features like function parameter popups, code completion popups, code condensing, etc. I used to use Emacs and still do for small programs.
starX
07-08-2002, 11:40 PM
Ugh! Fscking popups! Give me emacs and a command line cmopiler and debugger any day, I say. Using that combo'll make a man out of you, trust me :)
starX
www.axisoftime.com
black
07-09-2002, 05:32 AM
thanx all guys who reply~ ;)
I've downloaded the package already, and how could I install it ? it was with a tar type.
thanx in advance~
onurak
07-09-2002, 02:56 PM
g++ comes with all linux dist. and Kdevelop is the best ide at all you can download it from www.kdevelop.org
black
07-09-2002, 10:07 PM
oh...it is unlucky Dev-C++ met some trouble. I followed the instruction and installed it. As instruction said I could enjoy Dev-C++ with inputing this line:
./devcpp
I did but nothing happened, I waited and tens of minutes passed nothting happened yet, What's wrong ??? :confused:
Dev-C++ for Linux is beta and not intended to be used yet (didn't you read that part?).
I'd go with Anjuta, the link is above, or use KDevelop which normally comes with KDE. Both are much better than Dev-C++.
black
07-10-2002, 05:20 AM
Originally posted by tgm
Dev-C++ for Linux is beta and not intended to be used yet (didn't you read that part?).
I'd go with Anjuta, the link is above, or use KDevelop which normally comes with KDE. Both are much better than Dev-C++.
thanx, but Kdevelop always generate such many files. And anjuta, I downloaded one and try to install it. during the installation, linux inform me that many stuff should be installed first. I have no idea what they are. here is the needed list:
scroolkeeper >=0.1.4
libgconf-1.so.1
libgconf-gtk-l.so.1
libgnomevfs.so.0
liboaf.so.0
any help ?
Unregistered
07-10-2002, 06:48 AM
>>Dev-C++ for Linux is beta and not intended to be used yet (didn't you read that part?).<<
Beta software is intended to be used. That's the point of Beta. The more people who use it, the more bugs will be found and reported...hopefully.
if every Linux user had your attitude, there would be very little software availible for Linux....get it together....
Sorry Unregistered, what I should've said was it isn't usable, as in not stable.
This is from the development site:
"This beta is not really usable for now, but it may be of interest. If you want to report bugs please read "
As I highly doubt black is looking to be a beta tester, I don't think Dev-C++ is the right choice. I was under the impression we were suggesting stable projects.
black-
If you don't want all the files generated you can do what I do and just use the IDE to write the source code, then generate your own makefiles and compile on the command line. Those install requirements are some libraries that Anjuta uses which you install if you feel like it.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.