צריך עזרה בשפת C בבקשה!!! :( - תוכנה - HWzone פורומים
עבור לתוכן
  • צור חשבון

צריך עזרה בשפת C בבקשה!!! :(


EviL-RaBBi

Recommended Posts

אז ככה..

מצאתי איזה קוד ב C שאני מעוניין להפעיל אבל הוא עושהההה לי מלא בעיות.

פעם ראשונה שלי עם C אבל לפי מה שהבנתי צריך בספריית include מלא קבצים נוספים שחסרים לי.

אבל לא מצאתי אותם:(

עכשיו אני מחפש אותם או תוכנה שתכיל ישר את כולם

מצאתי אותם דרך ADDON לתוכנה שאין לי ... אבל נראה לי שהם לא מתאימים ל dev C++ או שהתוכנה לא תומכת ב C רגיל

הקיצר אני לא יודע מה לעשות ואני אשמח אם מישהו יעזור לי

הנה משהו שיעזור לכם להבין על מה אני מדבר

#include <stdio.h>

#include <string.h>

#include <stdlib.h>

#include <errno.h>

#include <string.h>

#include <netdb.h>

#include <sys/types.h>

#include <netinet/in.h>

#include <sys/socket.h>

#include <sys/wait.h>

#include <unistd.h>

#include <fcntl.h>

#define MAX10000

#define PORT5000

#define FREEZE512

#define NOP0x43

ועוד זה מה שהקומפיילר אומר לי

Executing gcc.exe...

gcc.exe "C:\Dev-C++\moshe.c" -o "C:\Dev-C++\moshe.exe" -s -I"C:\Dev-C++\include" -L"C:\Dev-C++\lib"

Execution terminated

In file included from C:\Dev-C++\moshe.c:28:

C:/Dev-C++/include/unistd.h:95: warning: `struct fd_set' declared inside parameter list

C:/Dev-C++/include/unistd.h:95: warning: its scope is only this definition or declaration, which is probably not what you want.

C:\DOCUME~1\Cohen\LOCALS~1\Temp\ccEfcaaa.o(.text+0x43a)://C/Dev-C++/moshe.c: undefined reference to `___stderr'

C:\DOCUME~1\Cohen\LOCALS~1\Temp\ccEfcaaa.o(.text+0x454)://C/Dev-C++/moshe.c: undefined reference to `___stderr'

C:\DOCUME~1\Cohen\LOCALS~1\Temp\ccEfcaaa.o(.text+0x46e)://C/Dev-C++/moshe.c: undefined reference to `___stderr'

C:\DOCUME~1\Cohen\LOCALS~1\Temp\ccEfcaaa.o(.text+0x62b)://C/Dev-C++/moshe.c: undefined reference to `snprintf'

C:\DOCUME~1\Cohen\LOCALS~1\Temp\ccEfcaaa.o(.text+0x63f)://C/Dev-C++/moshe.c: undefined reference to `gethostbyname'

C:\DOCUME~1\Cohen\LOCALS~1\Temp\ccEfcaaa.o(.text+0x69a)://C/Dev-C++/moshe.c: undefined reference to `socket'

C:\DOCUME~1\Cohen\LOCALS~1\Temp\ccEfcaaa.o(.text+0x6fa)://C/Dev-C++/moshe.c: undefined reference to `htons'

C:\DOCUME~1\Cohen\LOCALS~1\Temp\ccEfcaaa.o(.text+0x776)://C/Dev-C++/moshe.c: undefined reference to `connect'

C:\DOCUME~1\Cohen\LOCALS~1\Temp\ccEfcaaa.o(.text+0x800)://C/Dev-C++/moshe.c: undefined reference to `send'

0

תודה וסליחה על המגילה

קישור לתוכן
שתף באתרים אחרים

ארכיון

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

×
  • צור חדש...