hhunderter
Erfahrenes Mitglied
In der Datei stand nur des drin :
Code:
gcc -s -O2 -Wall -c -o netacka.o netacka.c
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
gcc -s -O2 -Wall -c -o netacka.o netacka.c
Und die zweite Datei ? (Siehe meinen editierten Beitrag )In der Datei stand nur des drin :
Code:gcc -s -O2 -Wall -c -o netacka.o netacka.c
Ja. Das ist aber nur ein Editor. (der Unterstützung für viele verschiedene Programmiersprachen hat und es ermöglicht Make aufzurufen etc.)ich habe gerade in der makefile gesehen das das mitn Programm namens "SciTE" geschrieben wurde oder so. kennst du das Programm?
Da fehlt die Datei pcap.h.Datei ist als Anhang...
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
CFLAGS = -s -O2 -Wall -D__GTHREAD_HIDE_WIN32API