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

שגיאת קומפילציה בויזואל סטודיו

Featured Replies

פורסם

היי,

אני כותבת תוכנית ממש פשוטה בC בויזואל ואני כל הזמן מקבלת שגיאה לא מובנת.

לפעמים כשאני מכבה את המחשב ומדליקה שוב זה מסתדר ואז חוזר שוב, לא נראה לי שזה קשור לקוד בכלל

זו השגיאה:

Error 2 error MSB6003: The specified task executable "link.exe" could not be run. The requested operation cannot be performed on a file with a user-mapped section open. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets 392 6 trg

והינה הקוד:

# include <stdio.h>
typedef int boolean;
# define TRUE 1
# define FALSE 0
int posStringInStr(char str[], char string[]);


void main()
{
char str[] = "abcdacba", string[] = "cb";
printf("%d\n", posStringInStr(str, string));
}
int posStringInStr(char str[], char string[])
{
char *pStr = str, *pString = string;
boolean found = FALSE;
int pos = 0;
int i = 0;


while( pStr != '\0' && pStr != pString)
{
if(pStr == pString)
{
found = TRUE;
while(pString != '\0' && found == TRUE)
{
if(pStr == pString)
{
pStr++;
i++;
pString += i;
}
else
{
found = FALSE;
i = 0;
}
}
}
else
{
pStr++;
pos++;
}
}
return pos;
}[/pre]

פורסם

הבעיה אכן לא בתכנית שלך - השגיאה אומרת שVS לא הצליח להריץ את link.exe, שזה הלינקר (שלב כלשהו בקומפילציה).

נסי להתקין מחדש את ה-Visual Studio.

אם זה לא עובד, נסי לחפש בגוגל את הודעת השגיאה ותראי איזה פתרונות מציעים לך.

פורסם

יכול להיות שאת מנסה לקמפל משהוא שלא נמצא על דרייב לוקלי? כלומר דרך הרשת?

ארכיון

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

דיונים חדשים

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.