Page 1 of 1

Compiling

Posted: Sun Jul 10, 2011 12:30 pm
by Ta_genius
When compiling i get this error

Code: Select all

[  1%] Building CXX object src/CMakeFiles/hpi.dir/TA3D_hpi.cpp.o
/usr/src/ta3d/src/TA3D_hpi.cpp: In member function ‘sint32 TA3D::UTILS::HPI::cHPIHandler::ReadAndDecrypt(sint32, byte*, sint32, TA3D::UTILS::HPI::cHPIHandler::HPIFILEDATA*)’:
/usr/src/ta3d/src/TA3D_hpi.cpp:37:47: error: ‘fseek’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp:38:67: error: ‘fread’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp: In member function ‘void TA3D::UTILS::HPI::cHPIHandler::CloseHPIFile(TA3D::UTILS::HPI::cHPIHandler::HPIFILEDATA*)’:
/usr/src/ta3d/src/TA3D_hpi.cpp:311:32: error: ‘fclose’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp: In member function ‘void TA3D::UTILS::HPI::cHPIHandler::AddArchive(const TA3D::String&, bool)’:
/usr/src/ta3d/src/TA3D_hpi.cpp:417:55: error: ‘fread’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp: In member function ‘void TA3D::UTILS::HPI::cHPIHandler::PutInCache(const TA3D::String&, uint32, const byte*)’:
/usr/src/ta3d/src/TA3D_hpi.cpp:563:49: error: ‘fwrite’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp:564:30: error: ‘fclose’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp: In member function ‘byte* TA3D::UTILS::HPI::cHPIHandler::IsInDiskCache(const TA3D::String&, uint32*)’:
/usr/src/ta3d/src/TA3D_hpi.cpp:614:52: error: ‘fread’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp:616:34: error: ‘fclose’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp: In member function ‘byte* TA3D::UTILS::HPI::cHPIHandler::PullFromHPI(const TA3D::String&, uint32*)’:
/usr/src/ta3d/src/TA3D_hpi.cpp:680:51: error: ‘fread’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp:682:33: error: ‘fclose’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp:737:51: error: ‘fread’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp:739:31: error: ‘fclose’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp: In member function ‘byte* TA3D::UTILS::HPI::cHPIHandler::PullFromHPI_zone(const TA3D::String&, uint32, uint32, uint32*)’:
/usr/src/ta3d/src/TA3D_hpi.cpp:802:77: error: ‘fread’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp:804:33: error: ‘fclose’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp:827:73: error: ‘fread’ was not declared in this scope
/usr/src/ta3d/src/TA3D_hpi.cpp:829:31: error: ‘fclose’ was not declared in this scope
make[2]: *** [src/CMakeFiles/hpi.dir/TA3D_hpi.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/hpi.dir/all] Error 2
make: *** [all] Error 2
Please help

Re: Compiling

Posted: Sun Jul 17, 2011 9:28 pm
by zuzuf
Hi,

it looks like C stdio header is missing from TA3D_hpi.cpp (it most likely was included by some dependency on my system). Just add this line at the top:

Code: Select all

#include <cstdio>
You can also try the 0.6 branch (since I now have a working DSL connection I am going to build RC packages, so expect it to be stable soon).

Re: Compiling

Posted: Tue Jul 19, 2011 9:20 am
by Ta_genius
Thanks that worked

Re: Compiling

Posted: Sat Aug 13, 2011 2:20 am
by Flashbang232
what program? Looks interesting.