עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ניסיון כושל בקומפילציה בGCC בלינוקס.

Featured Replies

פורסם

שלום,

אני מנסה לקמפל קובץ מסויים בGCC, ואני מקבל את הודעות השגיאה הבאות:


In file included from main.c:1:
/usr/include/sys/types.h:213:21: error: endian.h: No such file or directory
In file included from /usr/include/stdio.h:72,
from main.c:3:
/usr/include/libio.h:32:23: error: _G_config.h: No such file or directory
In file included from /usr/include/stdio.h:72,
from main.c:3:
/usr/include/libio.h:296: error: syntax error before Γאר_G_off_tΓאש
/usr/include/libio.h:328: error: syntax error before Γאר}Γאש token
/usr/include/libio.h:371: error: syntax error before Γאר_G_off64_tΓאש
/usr/include/libio.h:409: error: syntax error before Γאר__wunderflowΓאש

ועוד הרבה הרבה שורות דומות.

נראה לי שהבעיה היא בקבצים שאני מכיל(מן הסתם הERROR מצביעים על זה).

אלה הספריות שאני מכיל:


#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <unistd.h>

אני מנסה להשתמש בSYSTEM CALLS:

FORK, WAIT, OPEN ו-CLOSE

(באותיות קטנות כמובן)

אודה לכם אם תעזרו לי למצוא את הבעיה.

תודה.

פורסם

זה נראה כמו בעיה בהתקנה של GCC (או שחסרים לו קבצים, או שחסרים לך קבצים ב-include path).

תחפש אם יש בכלל קבצים בשם endian.h או _G_config.h.

פורסם

אכן נראה כאילו הספריות של GCC לא מקונפגות. יש גם משתנה סביבה שקובע את ספריות ה-include.

זה נשמע מוזר. בד"כ לינוקס בא עם GCC והוא בא עם GCC מקונפג נכון.

יכול להיות שזה לינוקס שבא בלי GCC ומישהו התקין בו GCC ידנית?

חוצמזה מה זה השמות המוזרים של הפוקנציות? אתה עובד UNICODE בתוך ה-SOURCE?

פורסם
  • מחבר

החלפתי מחשב ועכשיו זה עובד.

כנראה זו אכן בעיה בהתקנה. אני צריך להגיד את זה לאחרי שם.

תודה.

פורסם

בהצלחה.

GCC הוא אחלה :)

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.