تحياتي لجميع الاعضاء
اسمي ناصر فلسطيني الجنسية هذه اول مشاركة لي في هذا المنتدى الرائع
كتبت
وحفظته بامتداد c
وعملتله كمبايل gcc 1.c -o 1.c طلعلي

اسمي ناصر فلسطيني الجنسية هذه اول مشاركة لي في هذا المنتدى الرائع
كتبت
كود:
[LEFT]#include <stdio.h> main() { printf(¨hello bad \n¨); }[/LEFT]
وعملتله كمبايل gcc 1.c -o 1.c طلعلي
1.c:1:18: error: stdio.h: No such file or directory
1.c: In function ‘main’:
1.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
1.c:4: error: stray ‘\302’ in program
1.c:4: error: stray ‘\250’ in program
1.c:4: error: ‘hello’ undeclared (first use in this function)
1.c:4: error: (Each undeclared identifier is reported only once
1.c:4: error: for each function it appears in.)
1.c:4: error: expected ‘)’ before ‘bad’
1.c:4: error: stray ‘\’ in program
1.c:4: error: stray ‘\302’ in program
1.c:4: error: stray ‘\250’ in program
[email protected]:~$ gcc
gcc: no input files
[email protected]:~$ sudo apt-get install gcc
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1.c: In function ‘main’:
1.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
1.c:4: error: stray ‘\302’ in program
1.c:4: error: stray ‘\250’ in program
1.c:4: error: ‘hello’ undeclared (first use in this function)
1.c:4: error: (Each undeclared identifier is reported only once
1.c:4: error: for each function it appears in.)
1.c:4: error: expected ‘)’ before ‘bad’
1.c:4: error: stray ‘\’ in program
1.c:4: error: stray ‘\302’ in program
1.c:4: error: stray ‘\250’ in program
[email protected]:~$ gcc
gcc: no input files
[email protected]:~$ sudo apt-get install gcc
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
تعليق