[Çözüldü] CLion,Netbeans,Eclipste C derleyici çalışmıyor

Başlatan Commodor, 31 Aralık 2015 - 15:17:01

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

Commodor

İyi günler,

Linux mint kullanıyorum.Bu sürümde C kulllanıyordum fakat artık çalıştırmıyor.gcc zaman kaybı onlada uğraşmak istemiyorum.CLion da aldığım hata
Bu arada bu yazıdklarım Geany de dahil hiç bi şekilde run edemedim :(

Error:The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/hakan/.CLion12/system/cmake/generated/8f19cd47/8f19cd47/__default__/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_4c31d/fast"
/usr/bin/make -f CMakeFiles/cmTC_4c31d.dir/build.make CMakeFiles/cmTC_4c31d.dir/build
make[1]: Entering directory `/home/hakan/.CLion12/system/cmake/generated/8f19cd47/8f19cd47/__default__/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4c31d.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_4c31d.dir/testCCompiler.c.o -c /home/hakan/.CLion12/system/cmake/generated/8f19cd47/8f19cd47/__default__/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_4c31d
/home/hakan/Downloads/clion-1.2.4/bin/cmake/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4c31d.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_4c31d.dir/testCCompiler.c.o -o cmTC_4c31d -rdynamic
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [cmTC_4c31d] Error 1
make[1]: Leaving directory `/home/hakan/.CLion12/system/cmake/generated/8f19cd47/8f19cd47/__default__/CMakeFiles/CMakeTmp'
make: *** [cmTC_4c31d/fast] Error 2
CMake will not be able to correctly generate this project.

Amenofis

Derleyiciyi editöre tanıtmadın herhalde. Linux sistemlerde "cc" diye bir derleyici yok. cc genelde makefie dosyalarında derleyici ismini belirtmek için kullanılan bir takı. Varsa editörün derleyici ayarlarına girip gcc veya clang ı göstermeyi dene. Gerçi linuxta buna hiç gerek olmaması lazım, yoksa gcc kurulu değil mi?

Commodor

gcc kurulu gözüküyor.dediğinizi yapacağımda bulamadım maalesef biraz daha baktıktan sonra olup olmadığını yazayım.teşekkürler

-DıLgEş-

Alıntı yapılan: Commodorgcc kurulu gözüküyor.dediğinizi yapacağımda bulamadım maalesef biraz daha baktıktan sonra olup olmadığını yazayım.teşekkürler
Hemen hemen her Linux dagitiminda gcc kurulu olarak gelmektedir belli ki IDE uzernde derleyici ayarlari yapilmamis.
Aşkın; gözü kör, kulağı sağır, dili tutuk, aklı kıttır..! Hayır yani bu halde nasıl herkesi madara ediyor onu çözemedim..

Commodor

derleyici ayarlarını maalesef yapamadım bulamadım bu editorlerin hangi bölümlerinde oluyor 1 saattir bakıyorum :(

-DıLgEş-

Alıntı yapılan: Commodorderleyici ayarlarını maalesef yapamadım bulamadım bu editorlerin hangi bölümlerinde oluyor 1 saattir bakıyorum
Ben kullanimi kolay oldugu icin CodeBlocks kullaniyorum, bu tumlesik gelistirme ortamlarini kullanmadim hic..

Alıntı Yap
LinuxTo start the NetBeans IDE on Linux systems:

  • Navigate to the bin subdirectory of your installation.
  • Execute the launcher script by typing ./netbeans.
To build a sample project and run it in the debugger:

  • Open the New Project wizard by choosing File > New Project.
  • In the Categories panel on the Choose Project page of the wizard, expand the Samples category and the C/C++ Development subcategory, and select the C/C++ subcategory.
  • In the Projects panel, select the Welcome project. Click Next.
  • On the Project Name and Location page, click Finish.
  • In the Projects tab of the IDE, right-click the Welcome_1 project and choose Properties.
  • In the Project Properties dialog box, set the Compiler Collection property to the compiler collection you want to validate and click OK.
  • In the Projects tab, right-click the project and choose Build Project. If your compilers and make utility are installed correctly and the path to them is set, build output is displayed in the Output window and the project builds successfully.
  • Double-click the welcome.cc file to open it in the Source Editor.
  • Right-click in the left margin of the Source Editor window and choose Show Line Numbers.
  • Set a breakpoint by clicking in the left margin of the Source Editor window next to line 33.
  • Right-click the project and choose Debug Project. If the gdb debugger is installed correctely and the path to it is set, gdb starts up, the Debugger tabs are displayed, and the Welcome application runs and stops at the breakpoint.
  • Choose Run > Continue to run the application to completion.
https://netbeans.org/community/releases/60/cpp-setup-instructions.html

Netbeans ile su sekilde mi yapiyorsunuz?
Aşkın; gözü kör, kulağı sağır, dili tutuk, aklı kıttır..! Hayır yani bu halde nasıl herkesi madara ediyor onu çözemedim..

Commodor

#6
en sonunda çoğunu silip clion u bıraktım sadece şuanda söylediğiniz şeyi denemek için netbeansı tekrar indirip kuracağım.denedikten sonra yazarım.teşekkürler

olmadı arkadaşlar.çalıştırmıyorum

Arkadaşlar sorun çözüldü :
sudo apt-get install libc-dev

sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
kodlarını yazdığımda sorun gitti.İlgilendiğiniz için teşekkürler