Compiling

You have a problem with TA3D, it doesn't run or it crashes...
/
Vous avez un problème avec TA3D, il ne se lance pas ou plante...
Post Reply
Ta_genius
Posts: 2
Joined: Sun Jul 10, 2011 12:27 pm

Compiling

Post by Ta_genius » Sun Jul 10, 2011 12:30 pm

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

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Compiling

Post by zuzuf » Sun Jul 17, 2011 9:28 pm

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).
=>;-D Penguin Powered

Ta_genius
Posts: 2
Joined: Sun Jul 10, 2011 12:27 pm

Re: Compiling

Post by Ta_genius » Tue Jul 19, 2011 9:20 am

Thanks that worked

Flashbang232
Posts: 155
Joined: Tue Aug 03, 2010 6:59 pm
Location: Behind LOIC

Re: Compiling

Post by Flashbang232 » Sat Aug 13, 2011 2:20 am

what program? Looks interesting.
When you cannot trust your government to lead the nation to better times is when you know the ship is sinking

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests