עבור לתוכן

לא מצליח לעבוד ב-CodeBlocks עם קבצי o

Featured Replies

פורסם

היי,

יש לי פרויקט בשפת C שיש בו את הקבצים הבאים: Board.c Board.h PlayBoard.c ErrorHandle.h ErrorHandle.o

אני מנסה להריץ את זה ב-CodeBlock ואני מקבל את השגיאה הבאה:

Switching to target: default
Linking console executable: C:\Documents and Settings\Administrator.OR-CD0400C56A44\My Documents\אוני\C\Ex3\q4\q4.exe
mingw32-g++.exe: .objs\ErrorHandle.o: No such file or directory

ניסית להשים את הקובץ ErrorHandle.o בתוך התקיה .obj אבל אז הוא נותן לי את השגיאות הבאות:

/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:8: undefined reference to `stderr'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:8: undefined reference to `fwrite'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:11: undefined reference to `stderr'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:11: undefined reference to `fwrite'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:14: undefined reference to `stderr'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:14: undefined reference to `fwrite'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:17: undefined reference to `stderr'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:17: undefined reference to `fwrite'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:20: undefined reference to `stderr'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:20: undefined reference to `fwrite'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:23: undefined reference to `stderr'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:23: undefined reference to `fwrite'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:35: undefined reference to `stderr'
/cs/course/current/labc/StuffMat/ex3/ErrorHandle.c:35: undefined reference to `fwrite'
.objs\Board.o:Board.c:(.text+0x11b): undefined reference to `ReportError'
.objs\Board.o:Board.c:(.text+0x1a7): undefined reference to `ReportError'
.objs\Board.o:Board.c:(.text+0x2c7): undefined reference to `ReportError'
.objs\Board.o:Board.c:(.text+0x3c5): undefined reference to `ReportError'
.objs\Board.o:Board.c:(.text+0x4dc): undefined reference to `ReportError'
.objs\Board.o:Board.c:(.text+0x502): more undefined references to `ReportError' follow
collect2: ld returned 1 exit status

מישהו יכול לעזור לי עם זה? אני זקוק נואשות ל-Debuger

פורסם

נראה כאילו לא עשית אינקלוד לstdio.h.

פורסם
  • מחבר

עשיתי, הקוד רץ בלינוקס תקין לגמרי.

אבל אני צריך Debugger

אגב באובונטו אצלי אחרי הקימפול, כשאני רושם את השם של הקובץ הרצה הוא אומר שהוא לא מכיר את הפקודה.

איך אפשר לפתור את זה?

פורסם

אתה צריך לתת פקודה:


./a.out


פורסם
  • מחבר

סבבה זה עובד..

יש לך אולי איזה דיבבגר אחר להמליץ לי עליו? ללינוקס או חלונות. (מעדיף חלונות)

פורסם

IDA נחשב לממש ממש טוב.

ארכיון

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

דיונים חדשים