עבור לתוכן
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.

linking error in cpp file: unresolved external symbol

Featured Replies

פורסם

קורה בשני מהדרים שונים.

compile: errors: 0, warnings: 0

וזה מה שאני מקבל כשאני מנסה לעשות build:

Error: Unresolved external 'AddCustomer(tree*&,tree*&,char*,long,long,long)' referenced from module project18.cpp

Error: Unresolved external 'RemoveCustomer(tree*&,tree*&,long)' referenced from module project18.cpp

Error: Unresolved external 'ShowBalance(tree*,long)' referenced from module project18.cpp

Error: Unresolved external 'GetData(char*,long&,long&)' referenced from module project18.cpp

Error: Unresolved external 'UpdateBalance(tree*,long,long)' referenced from module project18.cpp

בתכנית עצמה יש הרבה מאד פונקציות, להלן האבי טיפוס של הפונקציות הנדונות:

void UpdateBalance (tree *, long, long);

void GetData (char *, long &, long &);

void ShowBalance (tree *, long);

void RemoveCustomer (tree *&, tree *&, long);

void AddCustomer (tree *&, tree *&, char[], long, long, long);

אין שום קישור יענו אין שום

include

לקובץ שלי אחר, רק אלא שצריך לקלט פלט ומחרוזות

כל הפונקציות באותו קובץ ולכולן יש אב טיפוס בתחילת הקובץ

מה קורה פה? help!

פורסם

סביר להניח שקראת לפונקציה שלא הגדרת

בדקת שגיאות כתיב בשמות של הפונקציות?

פורסם

holy, מה שאמרת נכון, אבל לא לגמרי מדויק עד כמה שזכור לי...

Unresolved external זה כאשר קראת לפונקציה שהגדרת את ה prototype שלה, אבל לא מימשת את הפונק' עצמה, ולאחר מכן קראת לה... זה באמת קורא כאשר עושים שגיאת כתיב בprototype של הפונקציה או במימוש שלה...

פורסם
  • מחבר

אין אף שגיאת כתיב ואף פונקציה לא ממומשת.

עריכה: מצאתי את הבעיה... בשלב מסויים עברתי מ short int ל long int ועדכנתי את הכל חוץ מברשימת הפרמטרים בהגדרת הפונקציה עצמה, עכשיו זה בסדר.

פורסם

אם תצרף קוד אולי נוכל לעזור לך

ארכיון

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

דיונים חדשים

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.