Programming In Linux Presentation - Presentation Transcript
Programming C++ in Linux by various IDEs and editors by: Danial Khashabi Master: Dr.B.Taheri November 2008
Programming in Linux
Over view
Tools
These tools are available for Linux, and most are in the repositories. All are free. Everyone has their preferences, so it is usually futile to ask which is better. The easiest way to find out is to try them and see for yoursel f.
Editors
Editors are needed for almost every language. Any text editor will do.
Editra, Emacs, Gedit, kate, Kwrite, Vim and ....
Integrated Development Environments ( IDE )
Kdevelop, Eclips, Anjuta, Code::Blocks, Eclipse, Geany, GNAT Programming Studio
IDLE, Lazarus, MonoDevelop, NetBeans
Interface Designers
Glade
Programming in Linux
GEdit
gedit is a free software, text editor for the GNOME desktop environment.
It is mainly designed for editing program code.
Features:
For various program codes includes syntax highlighting. (C, C++, Java, HTML, XML, Python, Perl and many others)
GUI tabs for editing multiple files
Tabs can be moved between various windows as fitting for the coder.
And other simple features for text editors like line numbering, bracket matching, text wrapping, current line highlighting and automatic file backup.
Programming in Linux
VIM
VI Improved
An editor for Unix-Based systems, or windows
It can be runned in Console or Graphical base.(GVIM)
instead, it uses an external compiler such as gcc to produce executable code.
supports many programming languages such as Ada, Bash, C, C++, Fortran, Java, Pascal, Perl, PHP, Python and Ruby
Features:
Its fast to edit a file. (not uses graphical envirment)
Simple to learn and work.
Programming in Linux
GNU C++ compiler
Will install the g++ and gcc compilers
Will install GNU make
Programming in Linux
Compiling a C++ Program with gcc/g++
g++ hello.cpp: compiling and making object file with name of a.out ( just with errors )
-o Operater: making an object file with a desired name.
-allw (all warnings): compiling with showing all warnings
./a.out <in> out: Getting inputs from a file and putting outputs in a file
For more information: man g++
Programming in Linux
Build systems
* GNU gmake/make: GNU make is a build system based on the original UNIX " make " build system
Programming in Linux
Shell Scripting
What is shel scripting?
One of powerful tools, under Linux that for all practical purposes are unavailable under Windows.
” shell programming",This means writing code that a command shell executes.
Programming in Linux
Any Question?
Programming in Linux
Kdevelop
is a free software integrated development environment for the KDE desktop environment for Unix-like computer operating systems.
Does not include a compiler! instead, it uses an external compiler such as gcc to produce executable code.
supports many programming languages such as Ada, Bash, C, C++, Fortran, Java, Pascal, Perl, PHP, Python and Ruby
0 comments
Post a comment