Fórumok
Sziasztok!
Segitseget szeretnek kerni egy program forditasahoz. Egy szimpla make kiadasa utan ezt kapom:
make
==> gserver.cc
g++ -g -Wall gserver.cc -c -o gserver.o
gserver.cc: In function ‘int main(int, char**)’:
gserver.cc:165:34: error: no matching function for call to ‘stat::stat(const char*, stat*)’
/usr/include/bits/stat.h:47:3: note: candidates are: stat::stat()
/usr/include/bits/stat.h:47:3: note: stat::stat(const stat&)
gserver.cc:167:29: error: ‘S_ISDIR’ was not declared in this scope
gserver.cc:170:37: error: no matching function for call to ‘stat::stat(const char*, stat*)’
/usr/include/bits/stat.h:47:3: note: candidates are: stat::stat()
/usr/include/bits/stat.h:47:3: note: stat::stat(const stat&)
gserver.cc:172:29: error: ‘S_ISDIR’ was not declared in this scope
make: *** [gserver.o] Error 1
Merre kellene elindulni, hogy valahogy mukodesre birjam, de legalabbis leforduljon? A szerzoknek irtam, de nem valaszoltak eddig. A kod maga a glasnost nevezetu halozat "tesztelo".
A segitseget elore is koszonom!
Hozzászólások
Elso blikkre egy sys/stat.h include hianyzik neki.
--
|8]
+1 bár kérdéses, hogy az a másik stat.h honnan a sunyiból jött. Esetleg a sys/types.h .
Koszonom nagyon! Vendegem vagy egy sorre, bambira, ki mit szeret :)
Ez volt valoban ami hianyzott neki.
könyvjelző
--
unix -- több, mint kód. filozófia.
Life is feudal