Toon posts:

[C/C++] Probleem met compillen, mist veel incules

Pagina: 1
Acties:
  • 55 views sinds 30-01-2008

Verwijderd

Topicstarter
Ik ben sinds vorige week als 100% noob begonnen aan het compilen van C en C++ bestanden. Ik ben er dus al zelf achter dat ik de source file in de bin map moet zetten en dan in cmd dit moet intypen:

code:
1
BCC32 -c exploit.c


Na dit te doen krijg ik een berg errors waar je akelig van wordt...

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
F:\PROGRA~1\Borland\CBuilder6\Bin>BCC32 -c exploit.c
Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland
exploit.c:
Error E2209 exploit.c 2: Unable to open include file 'unistd.h'
Error E2209 exploit.c 5: Unable to open include file 'termios.h'
Error E2209 exploit.c 6: Unable to open include file 'sys/select.h'
Error E2209 exploit.c 7: Unable to open include file 'sys/time.h'
Error E2209 exploit.c 10: Unable to open include file 'libssh/libssh.h'
Error E2209 exploit.c 11: Unable to open include file 'libssh/sftp.h'
Error E2209 exploit.c 12: Unable to open include file 'arpa/inet.h'
Error E2209 exploit.c 14: Unable to open include file 'netdb.h'
Error E2209 exploit.c 17: Unable to open include file 'unistd.h'
Error E2209 exploit.c 21: Unable to open include file 'sys/socket.h'
Error E2209 exploit.c 22: Unable to open include file 'sys/wait.h'
Error E2209 exploit.c 23: Unable to open include file 'netinet/in.h'
Error E2147 exploit.c 27: 'SSH_SESSION' cannot start a parameter declaration
Error E2450 exploit.c 28: Undefined structure 'timeval' in function shell
Error E2449 exploit.c 28: Size of 'tv' is unknown or zero in function shell
Error E2450 exploit.c 28: Undefined structure 'timeval' in function shell
Error E2450 exploit.c 28: Undefined structure 'timeval' in function shell
Error E2449 exploit.c 28: Size of 'tv' is unknown or zero in function shell
Error E2451 exploit.c 32: Undefined symbol 'BUFFER' in function shell
Error E2451 exploit.c 32: Undefined symbol 'readbuf' in function shell
Warning W8065 exploit.c 32: Call to function 'buffer_new' with no prototype in f
unction shell
Error E2140 exploit.c 33: Declaration is not allowed here in function shell
Error E2451 exploit.c 36: Undefined symbol 'CHANNEL' in function shell
Error E2451 exploit.c 36: Undefined symbol 'channel' in function shell
Warning W8065 exploit.c 37: Call to function 'open_session_channel' with no prot
otype in function shell
Warning W8065 exploit.c 38: Call to function 'isatty' with no prototype in funct
ion shell
Warning W8065 exploit.c 39: Call to function 'channel_request_pty' with no proto
type in function shell
Warning W8065 exploit.c 41: Call to function 'channel_request_shell' with no pro
totype in function shell
Warning W8065 exploit.c 46: Call to function 'usleep' with no prototype in funct
ion shell
Warning W8065 exploit.c 47: Call to function 'channel_poll' with no prototype in
 function shell
Warning W8065 exploit.c 50: Call to function 'channel_read' with no prototype in
 function shell
Warning W8004 exploit.c 62: 'cmd' is assigned a value that is never used in func
tion shell
Warning W8057 exploit.c 62: Parameter 'session' is never used in function shell
Error E2451 exploit.c 69: Undefined symbol 'SSH_SESSION' in function checkauth
Error E2451 exploit.c 69: Undefined symbol 'session' in function checkauth
Error E2228 exploit.c 69: Too many error or warning messages in function checkau
th
*** 26 errors in Compile ***


Eerste wat ik geprobeert heb is de MSdos verise van C en C++ namelijk Turbo C en C++ en ik heb de Compiler versie 5.5 geprobeert. En tot slot de volledige geupdate versie van Borland C++Builder 6 enterprice. Maar ik bleef fouten krijgen.

Heb wat readme.txt gelezen en wat op de site van borland rond gesnuffeld. Helaas geen resultaat.

Daarna dacht ik laat ik eerst maar eens zorgen dat hij alle inculde files heeft voor ik de script ga verbouwen... Dus ikke gaan googlen en heel veel dingetjes gelezen en geprobeert... Maar het meeste wat ik vond waren uitlegjes over hoe zo een inculde werkt.

Ik heb door met google te zoeken ook de source van sommige bestanden gevonden en heb die mooi in de inculde map gezet. Vervolgens was de error van die inculde file weg maar komt er weer een andere bij.

Ik vind dat ik heel goed mijn best heb gedaan om het antwoord te vinden maar ik blijf echter hier ook steken... Nou kan het zijn dat sommige admins denken wat een n00b, zoiets kan je makkelijk vinden. Zou die admin me dan op zijn minst willen vertellen op WAT ik moet zoeken en WAAR ik moet zoeken. Denk maar zo iedereen is ooit als n00b begonnen en zou graag steigen naar 1337 ;)

De vraag is dus wat is nou het probleem? En waar kan ik die include files halen? En worden de andere errors veroorzaakt doordat ik een of meer van die include files mis...?

Bijvoorbaat bedankt mensen!

  • farlane
  • Registratie: Maart 2000
  • Laatst online: 21-05 16:18
Voor de zekerheid toch maar ff weggehaald ......

[ Voor 110% gewijzigd door farlane op 04-10-2004 18:16 ]

Somniferous whisperings of scarlet fields. Sleep calling me and in my dreams i wander. My reality is abandoned (I traverse afar). Not a care if I never everwake.


  • .oisyn
  • Registratie: September 2000
  • Laatst online: 02:00

.oisyn

Moderator Devschuur®

Demotivational Speaker

Je probeert een linux app te compileren onder windows, dat gaat niet echt. Sowieso gaat de missende include files erbij werken niet werken, je hebt slechts de definities van de symbolen, maar de implementaties mis je nog altijd.

[ Voor 51% gewijzigd door .oisyn op 04-10-2004 18:35 ]

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.


Verwijderd

Topicstarter
farlane schreef op 04 oktober 2004 @ 18:12:
Voor de zekerheid toch maar ff weggehaald ......
Sorry, wat weggehaald?

Verwijderd

Topicstarter
.oisyn schreef op 04 oktober 2004 @ 18:34:
Je probeert een linux app te compileren onder windows, dat gaat niet echt. Sowieso gaat de missende include files erbij werken niet werken, je hebt slechts de definities van de symbolen, maar de implementaties mis je nog altijd.
Aah

Daar heb ik nooit aan gedacht? Maar even ter info... Is het nou nog veel moeilijker om dat in linux te doen? Of is dat ook maar zoeen kort commandotje?

Verwijderd

Misschien kun je je beter eerst wat meer in het programmeren verdiepen, voor je code gaat compileren die allerlei includes nodig heeft, die je dus blijkbaar niet hebt.

  • klinz
  • Registratie: Maart 2002
  • Laatst online: 21-05 09:01

klinz

weet van NIETS

Error E2209 exploit.c 2: Unable to open include file 'unistd.h'
Wat mij betreft hadden ze, naar goed gebruik bij exploits, de #include's wel helemaal mogen weglaten om n00b's af te schrikken.

Verwijderd

Topicstarter
klinz schreef op 04 oktober 2004 @ 19:26:
[...]

Wat mij betreft hadden ze, naar goed gebruik bij exploits, de #include's wel helemaal mogen weglaten om n00b's af te schrikken.
Maar ze willen n00bs juist niet afschrikken ;)

Verwijderd

Verwijderd schreef op 04 oktober 2004 @ 19:27:

Maar ze willen n00bs juist niet afschrikken ;)
Vraag het dan aan 'ze'.

  • farlane
  • Registratie: Maart 2000
  • Laatst online: 21-05 16:18
De oplossing voor jouw probleem.

Somniferous whisperings of scarlet fields. Sleep calling me and in my dreams i wander. My reality is abandoned (I traverse afar). Not a care if I never everwake.


  • .oisyn
  • Registratie: September 2000
  • Laatst online: 02:00

.oisyn

Moderator Devschuur®

Demotivational Speaker

Verwijderd schreef op 04 oktober 2004 @ 19:20:
Daar heb ik nooit aan gedacht? Maar even ter info... Is het nou nog veel moeilijker om dat in linux te doen? Of is dat ook maar zoeen kort commandotje?
Ja
Maar dat mag je fijn helemaal zelf uit gaan zoeken, dat soort support leveren we hier niet op GoT :)

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.

Pagina: 1

Dit topic is gesloten.