C++ prijedlog

Počeo sam učitii c++ programski jezik , dok sam bio na win7 koristio sam dev-cpp kompajler, za ubuntu sam našao gcc ,al mislim da nema neke koristi od njeg…Koji je po vama najbolji c++ kompajler za linux ?

Vozdra,

prvo pogledaj ova dva linka

  1. http://en.wikipedia.org/wiki/Compiler
  2. http://en.wikipedia.org/wiki/Integrated_development_environment

KDE ili Gnome? Ja koristim netbeans @ http://netbeans.org/ . Imas jos CodeBlocs http://www.codeblocks.org/ , Eclipse http://www.eclipse.org/ , KDevelop za KDE http://www.kdevelop.org/ .

Gnome.

gedit, gnomeov text editor, ima source highlight mode za pisanje koda. oznacava kljucne i rezervirane rijeci za lakse prepoznavanje linija. osobno ga koristim za html i php. fileovi napisani u geditu koji sadrzavaju c i c++ programe se kompajliraju u terminalu naredbama gcc i g++.

Jel tebi treba kompajler ili razvojno okreuzenje? Za c++ kompajler u ubuntu instaliraj g++.
sudo apt-get install g++

Za okruzenje ja koristim netbeans, dobar je samo malo spor. Pozdrav

meni su za fakultet sasvim dovoljni gedit i g++…za ozbiljnije proramiranje odlucio sam se da pocnem sa qt-om…radi na svim mogucim platformama, ako sam dobro upratio u planu im je da framework portuju i na android…

samo da dodam, netbeans je malo memory hog ali dobar sto se tice usability-a. meni odgovara za vece projekte

[quote=boby]Jel tebi treba kompajler ili razvojno okreuzenje? Za c++ kompajler u ubuntu instaliraj g++.
sudo apt-get install g++

Za okruzenje ja koristim netbeans, dobar je samo malo spor. Pozdrav[/quote]
Ma meni treba nesto jednostavno kao sto je Dev-cpp na Windowsu , par opcija, da unesem kod i da ga moze automatski kompajlirat… ne da ja preko konzole radim , nisam bas dobar sa komandama tamo :smiley:

nije to toliko komplicirano. cd u folder gdje ti se source nalazi i upises g++ ulazni_file.cpp -o ime_programa
i pokrenes ./ime_programa

[quote=hajro][quote=boby]Jel tebi treba kompajler ili razvojno okreuzenje? Za c++ kompajler u ubuntu instaliraj g++.
sudo apt-get install g++

Za okruzenje ja koristim netbeans, dobar je samo malo spor. Pozdrav[/quote]
Ma meni treba nesto jednostavno kao sto je Dev-cpp na Windowsu , par opcija, da unesem kod i da ga moze automatski kompajlirat… ne da ja preko konzole radim , nisam bas dobar sa komandama tamo :D[/quote]
evo ti brate ovo

http://www.codeblocks.org/

[quote=nidla][quote=hajro][quote=boby]Jel tebi treba kompajler ili razvojno okreuzenje? Za c++ kompajler u ubuntu instaliraj g++.
sudo apt-get install g++

Za okruzenje ja koristim netbeans, dobar je samo malo spor. Pozdrav[/quote]
Ma meni treba nesto jednostavno kao sto je Dev-cpp na Windowsu , par opcija, da unesem kod i da ga moze automatski kompajlirat… ne da ja preko konzole radim , nisam bas dobar sa komandama tamo :D[/quote]
evo ti brate ovo

http://www.codeblocks.org/[/quote]
nemogu ga kompajlirat…

[code]hajro@ubuntu:~$ cd Desktop
hajro@ubuntu:~/Desktop$ cd codeblocks-8.02
hajro@ubuntu:~/Desktop/codeblocks-8.02$ ./configure --enable-contrib
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for g++… g++
checking for C++ compiler default output file name… a.out
checking whether the C++ compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking for style of include used by make… GNU
checking dependency style of g++… gcc3
checking for gcc… gcc
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking dependency style of gcc… gcc3
checking how to run the C preprocessor… gcc -E
checking for gcc… (cached) gcc
checking whether we are using the GNU C compiler… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking for gcc option to accept ISO C89… (cached) none needed
checking dependency style of gcc… (cached) gcc3
checking whether gcc and cc understand -c and -o together… yes
checking for a BSD-compatible install… /usr/bin/install -c
checking whether ln -s works… yes
checking whether make sets $(MAKE)… (cached) yes
checking for gawk… (cached) gawk
checking for a sed that does not truncate output… /bin/sed
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking how to recognize dependent libraries… pass_all
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking how to run the C++ preprocessor… g++ -E
checking for g77… no
checking for xlf… no
checking for f77… no
checking for frt… no
checking for pgf77… no
checking for cf77… no
checking for fort77… no
checking for fl32… no
checking for af77… no
checking for xlf90… no
checking for f90… no
checking for pgf90… no
checking for pghpf… no
checking for epcf90… no
checking for gfortran… no
checking for g95… no
checking for xlf95… no
checking for f95… no
checking for fort… no
checking for ifort… no
checking for ifc… no
checking for efc… no
checking for pgf95… no
checking for lf95… no
checking for ftn… no
checking whether we are using the GNU Fortran 77 compiler… no
checking whether accepts -g… no
checking the maximum length of command line arguments… 1572864
checking command to parse /usr/bin/nm -B output from gcc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fPIC
checking if gcc PIC flag -fPIC works… yes
checking if gcc static flag -static works… yes
checking if gcc supports -c -o file.o… yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no
configure: creating libtool
appending configuration tag “CXX” to libtool
checking for ld used by g++… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
checking for g++ option to produce PIC… -fPIC
checking if g++ PIC flag -fPIC works… yes
checking if g++ static flag -static works… yes
checking if g++ supports -c -o file.o… yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
appending configuration tag “F77” to libtool
checking for dirent.h that defines DIR… yes
checking for library containing opendir… none required
checking for ANSI C header files… (cached) yes
checking fcntl.h usability… yes
checking fcntl.h presence… yes
checking for fcntl.h… yes
checking limits.h usability… yes
checking limits.h presence… yes
checking for limits.h… yes
checking for stdlib.h… (cached) yes
checking for string.h… (cached) yes
checking sys/param.h usability… yes
checking sys/param.h presence… yes
checking for sys/param.h… yes
checking for unistd.h… (cached) yes
checking malloc.h usability… yes
checking malloc.h presence… yes
checking for malloc.h… yes
checking for stdbool.h that conforms to C99… yes
checking for _Bool… yes
checking for an ANSI C-conforming const… yes
checking for inline… inline
checking for size_t… yes
checking whether time.h and sys/time.h may both be included… yes
checking for working volatile… yes
checking whether closedir returns void… no
checking for stdlib.h… (cached) yes
checking for GNU libc compatible malloc… yes
checking for working memcmp… yes
checking whether lstat dereferences a symlink specified with a trailing slash… yes
checking whether stat accepts an empty string… no
checking for vprintf… yes
checking for _doprnt… no
checking for atexit… yes
checking for getcwd… yes
checking for isascii… yes
checking for memchr… yes
checking for memmove… yes
checking for memset… yes
checking for strcasecmp… yes
checking for strchr… yes
checking for strcspn… yes
checking for strdup… yes
checking for strrchr… yes
checking for strstr… yes
checking for dlopen in -ldl… yes
checking for pthread_create in -lpthread… yes
checking for snprintf… yes
checking for vsnprintf… yes
checking for library containing gzopen… no
checking for library containing BZ2_bzopen… no
checking whether to enable debugging… no
checking whether to build the source formatter plugin… yes
checking whether to build the autosave plugin… yes
checking whether to build the class wizard plugin… yes
checking whether to build the code completion plugin… yes
checking whether to build the compiler plugin… yes
checking whether to build the debugger plugin… yes
checking whether to build the default MIME handler plugin… yes
checking whether to build the open files list plugin… yes
checking whether to build the foreign projects importer plugin… yes
checking whether to build the scripted wizard plugin… yes
checking whether to build the to-do plugin… yes
checking which (if any) contrib plugins to build… Unknown contrib plugin none, ignoring
none
checking if the compiler supports precompiled headers… yes
checking for wx-config… no
configure: error:
wxWidgets must be installed on your system.

            Please check that wx-config is in path, the directory
            where wxWidgets libraries are installed (returned by
            'wx-config --libs' or 'wx-config --static --libs' command)
            is in LD_LIBRARY_PATH or equivalent variable and
            wxWindows version is 2.8.0 or above.[/code]

nemoj ni kompajlirat, imaš binaries na njihovoj stranici, a najlakše je (pošto je u ubuntu repozitoriju)

sudo apt-get install codeblocks codeblocks-contrib build-essential

i ja sam ga instalirao fore radi. iskusam ga kasnije.

[quote=nidla]nemoj ni kompajlirat, imaš binaries na njihovoj stranici, a najlakše je (pošto je u ubuntu repozitoriju)

http://aldin.linux.org.ba/screenshots/cb_gcc.png[/quote]
eee hvala ti evo radi :smiley: