Programm erstellen aber wie?

ich habe gerade in der makefile gesehen das das mitn Programm namens "SciTE" geschrieben wurde oder so. kennst du das Programm?

Datei ist als Anhang...
 

Anhänge

  • ausgabe.err.txt
    91,5 KB · Aufrufe: 30
ich habe gerade in der makefile gesehen das das mitn Programm namens "SciTE" geschrieben wurde oder so. kennst du das Programm?
Ja. Das ist aber nur ein Editor. (der Unterstützung für viele verschiedene Programmiersprachen hat und es ermöglicht Make aufzurufen etc.)
Datei ist als Anhang...
Da fehlt die Datei pcap.h.

Du mußt also libpcap noch installieren.

Dafür scheint es kein fertiges (binäres) Paket zu geben. Folge den Anweisungen hier: http://mathieu.carbou.free.fr/wiki/...tall_Winpcap_/_Libpcap_under_Cygwin#For_MinGW

\edit: Vergiss den letzten Satz. Download: http://www.winpcap.org/install/bin/WpdPack_4_1_1.zip => Kopiere einfach alles aus dem Include Verzeichnis im zip ins MinGW include Verzeichnis, alles aus dem Lib Verzeichnis ins MinGW lib Verzeichnis...

Gruß
 
Zuletzt bearbeitet:
also die Fehlerliste wird schon mal etwas kleiner:
Code:
In file included from C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:52,
                 from C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winsock2.h:22,
                 from C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/pcap-stdinc.h:49,
                 from C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/pcap/pcap.h:41,
                 from C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/pcap.h:45,
                 from C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/libnet.h:64,
                 from netacka.c:7:
C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/wingdi.h:1356: error: conflicting types for 'BITMAP'
C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/allegro/gfx.h:276: error: previous declaration of 'BITMAP' was here
In file included from netacka.c:9:
net.h:93: error: syntax error before '*' token
netacka.c: In function `_get_gui_buf':
netacka.c:41: warning: passing arg 2 of `blit' from incompatible pointer type
netacka.c: In function `_put_gui_buf':
netacka.c:42: warning: passing arg 1 of `blit' from incompatible pointer type
netacka.c: At top level:
netacka.c:139: error: syntax error before '*' token
netacka.c:139: warning: type defaults to `int' in declaration of `chan'
netacka.c:139: warning: data definition has no type or storage class
netacka.c:147: error: syntax error before "NET_CHANNEL"
netacka.c: In function `set_to_client':
netacka.c:160: warning: implicit declaration of function `net_assigntarget'
netacka.c: In function `draw_score_list':
netacka.c:295: warning: passing arg 1 of `clear_bitmap' from incompatible pointer type
netacka.c:296: warning: passing arg 1 of `clear_to_color' from incompatible pointer type
netacka.c:306: warning: passing arg 1 of `rectfill' from incompatible pointer type
netacka.c:311: warning: passing arg 1 of `rectfill' from incompatible pointer type
netacka.c:320: warning: passing arg 1 of `textout_ex' from incompatible pointer type
netacka.c:322: warning: passing arg 1 of `rectfill' from incompatible pointer type
netacka.c:323: warning: passing arg 1 of `rectfill' from incompatible pointer type
netacka.c:326: warning: passing arg 1 of `textprintf_ex' from incompatible pointer type
netacka.c:332: warning: passing arg 1 of `textout_ex' from incompatible pointer type
netacka.c:335: warning: passing arg 1 of `rect' from incompatible pointer type
netacka.c: In function `draw_konec':
netacka.c:366: warning: implicit declaration of function `net_send'
netacka.c:368: warning: passing arg 1 of `clear_bitmap' from incompatible pointer type
netacka.c:390: warning: passing arg 1 of `textprintf_ex' from incompatible pointer type
netacka.c:398: warning: passing arg 1 of `textprintf_ex' from incompatible pointer type
netacka.c:406: warning: passing arg 1 of `rectfill' from incompatible pointer type
netacka.c:407: warning: passing arg 1 of `rectfill' from incompatible pointer type
netacka.c:409: warning: passing arg 1 of `textprintf_ex' from incompatible pointer type
netacka.c: At top level:
netacka.c:551: error: syntax error before "NET_CHANNEL"
netacka.c: In function `send_name':
netacka.c:556: error: `whose' undeclared (first use in this function)
netacka.c:556: error: (Each undeclared identifier is reported only once
netacka.c:556: error: for each function it appears in.)
netacka.c: In function `__test':
netacka.c:592: warning: passing arg 1 of `getpixel' from incompatible pointer type
netacka.c:593: warning: passing arg 1 of `getpixel' from incompatible pointer type
netacka.c: In function `_put':
netacka.c:646: warning: passing arg 1 of `putpixel' from incompatible pointer type
netacka.c:647: warning: passing arg 1 of `putpixel' from incompatible pointer type
netacka.c:648: warning: passing arg 1 of `putpixel' from incompatible pointer type
netacka.c:649: warning: passing arg 1 of `putpixel' from incompatible pointer type
netacka.c:650: warning: passing arg 1 of `rectfill' from incompatible pointer type
netacka.c: In function `screenshot':
netacka.c:699: warning: passing arg 2 of `save_bitmap' from incompatible pointer type
netacka.c: In function `play_round':
netacka.c:731: warning: initialization from incompatible pointer type
netacka.c:732: warning: passing arg 1 of `create_sub_bitmap' from incompatible pointer type
netacka.c:732: warning: initialization from incompatible pointer type
netacka.c:733: warning: passing arg 1 of `create_sub_bitmap' from incompatible pointer type
netacka.c:733: warning: initialization from incompatible pointer type
netacka.c:744: warning: passing arg 1 of `clear_bitmap' from incompatible pointer type
netacka.c:745: warning: passing arg 1 of `rect' from incompatible pointer type
netacka.c:819: warning: passing arg 1 of `draw_konec' from incompatible pointer type
netacka.c:825: warning: passing arg 1 of `clear_bitmap' from incompatible pointer type
netacka.c:827: warning: passing arg 1 of `rect' from incompatible pointer type
netacka.c:856: warning: passing arg 1 of `blit' from incompatible pointer type
netacka.c:1007: warning: implicit declaration of function `net_query'
netacka.c:1016: warning: implicit declaration of function `net_receive'
netacka.c:1143: warning: passing arg 1 of `draw_konec' from incompatible pointer type
netacka.c:1151: warning: passing arg 1 of `clear_bitmap' from incompatible pointer type
netacka.c:1153: warning: passing arg 1 of `rect' from incompatible pointer type
netacka.c:1184: warning: passing arg 1 of `destroy_bitmap' from incompatible pointer type
netacka.c:1185: warning: passing arg 1 of `destroy_bitmap' from incompatible pointer type
netacka.c:1186: warning: passing arg 1 of `destroy_bitmap' from incompatible pointer type
netacka.c: At top level:
netacka.c:1190: error: syntax error before '*' token
netacka.c: In function `set_mode':
netacka.c:1224: warning: passing arg 1 of `destroy_bitmap' from incompatible pointer type
netacka.c:1225: warning: assignment from incompatible pointer type
netacka.c: In function `_mangled_main':
netacka.c:1299: warning: passing arg 1 of `destroy_bitmap' from incompatible pointer type
netacka.c:1300: warning: implicit declaration of function `net_closechannel'
netacka.c: In function `start':
netacka.c:1465: error: `NET_CHANNEL' undeclared (first use in this function)
netacka.c:1465: warning: implicit declaration of function `net_openchannel'
netacka.c:1466: error: `chan2' undeclared (first use in this function)
netacka.c:1466: warning: left-hand operand of comma expression has no effect
netacka.c: In function `try_to_connect':
netacka.c:1702: warning: assignment makes pointer from integer without a cast
netacka.c: In function `start_server':
netacka.c:1747: warning: assignment makes pointer from integer without a cast
netacka.c: In function `start':
netacka.c:1465: warning: statement with no effect
mingw32-make: *** [netacka.o] Error 1
 
Ändere mal die CFLAGS Variable in dem Makefile so:
Code:
CFLAGS = -s -O2 -Wall -D__GTHREAD_HIDE_WIN32API

\edit: Wenn das nicht hilft, dann stelle sicher, das du zuerst die allegro.h Headerdatei einbindest, und direkt danach die winalleg.h.
 
Zuletzt bearbeitet:
sry das ich erst später Antworte ^^

Das mit den Flags hab ich ausprobiert aber kein erfolg werde mal alle Dateien mal überprüfen ob die Reihenfolge da ist...

werde mich dann nochmal melden^^
aber danke dir erstmal
 
Hi.

Ich hab nochmal geschaut und festgestellt, das es 2 unterschiedliche Bibliotheken mit dem Namen libnet gibt.

Es war also die falsche libnet Bibliothek die du jetzt verwendest. (Ich war auch etwas verwundert warum diese libpcap benötigen sollte... :confused:)

Download: http://sourceforge.net/projects/libnet/files/libnet/0.10.11/libnet-0.10.11.tar.gz/download

Diese Bibliothek mußt du erstmal erstellen. Dazu kopierst du die mingw.mak aus dem makefiles Verzeichnis nach port.mak ins Verzeichnis wo du das Zip extrahiert hast.

Dann rufst du da mingw32-make auf.

Dann kopierst du die Datei aus dem include Verzeichnis ins mingw/include Verzeichnis und die erstellte libnet.a Bibliothek aus dem lib Verzeichnis ins mingw/lib Verzeichnis.

Die vorher installierten Dateien der libnet und pcap Bibliothek kannst du wieder löschen.

Gruß
 
Zurück