Projekt: | Trisquel |
Version: | 6.0 |
Komponente: | Programs |
Kategorie: | Aufgabe |
Priorität: | minor |
Zugewiesen: | nicht zugewiesen |
Status: | active |
Hi
I installed Code:blocks from the terminal
When I compile the C example program ( A simple Hello World) , here is what I get :
-------------- Build: Debug in test ---------------
Compiling: main.c
/home/hardisk/Documents/C/test/main.c:1:19: error: stdio.h: Aucun fichier ou dossier de ce type
/home/hardisk/Documents/C/test/main.c:2:20: error: stdlib.h: Aucun fichier ou dossier de ce type
Thoose errors mean in english : File not found
It seems that basics C libraries are not installed with the package, they are on Ubuntu.
I set this bug to "critical" because the application is useless if you can't code with it.
Thanks
Hardisk
It happens in Trisquel too.
Fix : sudo apt-get install build-essential
The packet should be auto installing the basic C libraries
Changing this from a critical bug to a minor task. I believe the user just wants the build-essential package to be listed as a dependency for the code blocks package.
However a critical bug for an individual package does not necessarily constitute a critical bug for Trisquel (unless it causes Trisquel to not operate normally).
I still have this problem in Trisquel 6.0.
Steps to reproduce the error
Expected behavior
After following the steps above, a console should appear and display the following text:
Unexpected behavior
After following the steps above, you see the following in the "Build log" tab located in the "Log & others" section:
Workaround
As suggested before, installing the "build-essential" package fixes the problem.