dump247 / udt-net

This project is not maintained
http://udt.sourceforge.net
Other
67 stars 23 forks source link

CPacket class missing from the source distribution #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Cory,

I am trying to build the udt-net library from the source code you provided.  
When building the UdtProtocol DLL, I get linker errors related to a missing 
class named CPacket:

00439: ShutdownPacket.obj : error LNK2020: unresolved token (0A00034E) "public: 
void __thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z)
00440: KeepAlivePacket.obj : error LNK2020: unresolved token (0A00034E) 
"public: void __thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z)
00441: ErrorPacket.obj : error LNK2028: unresolved token (0A00034E) "public: 
void __thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z) referenced in function "public: __clrcall 
Udt::ErrorPacket::ErrorPacket(void)" (??0ErrorPacket@Udt@@$$FQ$AAM@XZ)
00442: CongestionPacket.obj : error LNK2020: unresolved token (0A00034E) 
"public: void __thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z)
00443: Ack2Packet.obj : error LNK2028: unresolved token (0A00034E) "public: 
void __thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z) referenced in function "public: __clrcall 
Udt::Ack2Packet::Ack2Packet(void)" (??0Ack2Packet@Udt@@$$FQ$AAM@XZ)
00444: DataPacket.obj : error LNK2028: unresolved token (0A000352) "public: 
void __thiscall CPacket::setLength(int)" (?setLength@CPacket@@$$FQAEXH@Z) 
referenced in function "public: void __clrcall 
Udt::DataPacket::Write(int,cli::array<unsigned char >^,int,int)" 
(?Write@DataPacket@Udt@@$$FQ$AAMXHP$01AEHH@Z)
00445: DataPacket.obj : error LNK2028: unresolved token (0A000354) "public: int 
__thiscall CPacket::getMsgSeq(void)const " (?getMsgSeq@CPacket@@$$FQBEHXZ) 
referenced in function "public: int __clrcall 
Udt::DataPacket::MessageNumber::get(void)" 
(?get@MessageNumber@DataPacket@Udt@@$$FQ$AAMHXZ)
00446: DataPacket.obj : error LNK2028: unresolved token (0A000355) "public: 
bool __thiscall CPacket::getMsgOrderFlag(void)const " 
(?getMsgOrderFlag@CPacket@@$$FQBE_NXZ) referenced in function "public: bool 
__clrcall Udt::DataPacket::InOrder::get(void)" 
(?get@InOrder@DataPacket@Udt@@$$FQ$AAM_NXZ)
00447: DataPacket.obj : error LNK2028: unresolved token (0A000357) "public: int 
__thiscall CPacket::getMsgBoundary(void)const " 
(?getMsgBoundary@CPacket@@$$FQBEHXZ) referenced in function "public: enum 
Udt::MessageBoundary __clrcall Udt::DataPacket::MessageBoundary::get(void)" 
(?get@MessageBoundary@DataPacket@Udt@@$$FQ$AAM?AW413@XZ)
00448: DataPacket.obj : error LNK2028: unresolved token (0A000358) "public: int 
__thiscall CPacket::getLength(void)const " (?getLength@CPacket@@$$FQBEHXZ) 
referenced in function "public: __clrcall Udt::DataPacket::DataPacket(class 
CPacket const *)" (??0DataPacket@Udt@@$$FQ$AAM@PBVCPacket@@@Z)
00449: Packet.obj : error LNK2028: unresolved token (0A000357) "public: 
__thiscall CPacket::~CPacket(void)" (??1CPacket@@$$FQAE@XZ) referenced in 
function "public: void * __thiscall CPacket::`scalar deleting 
destructor'(unsigned int)" (??_GCPacket@@$$FQAEPAXI@Z)
00450: Packet.obj : error LNK2028: unresolved token (0A000359) "public: 
__thiscall CPacket::CPacket(void)" (??0CPacket@@$$FQAE@XZ) referenced in 
function "public: __clrcall Udt::Packet::Packet(void)" 
(??0Packet@Udt@@$$FQ$AAM@XZ)
00451: Packet.obj : error LNK2028: unresolved token (0A00035B) "public: int 
__thiscall CPacket::getType(void)const " (?getType@CPacket@@$$FQBEHXZ) 
referenced in function "public: static class Udt::Packet ^ __clrcall 
Udt::Packet::Wrap(class CPacket const *)" 
(?Wrap@Packet@Udt@@$$FSMP$AAV12@PBVCPacket@@@Z)
00452: Packet.obj : error LNK2028: unresolved token (0A00035C) "public: int 
__thiscall CPacket::getFlag(void)const " (?getFlag@CPacket@@$$FQBEHXZ) 
referenced in function "public: static class Udt::Packet ^ __clrcall 
Udt::Packet::Wrap(class CPacket const *)" 
(?Wrap@Packet@Udt@@$$FSMP$AAV12@PBVCPacket@@@Z)
00453: Socket.obj : error LNK2028: unresolved token (0A000428) "public: 
__thiscall CUDTCC::CUDTCC(void)" (??0CUDTCC@@$$FQAE@XZ) referenced in function 
"public: virtual class CCC * __thiscall CCCFactory<class CUDTCC>::create(void)" 
(?create@?$CCCFactory@VCUDTCC@@@@$$FUAEPAVCCC@@XZ)
00454: ShutdownPacket.obj : error LNK2001: unresolved external symbol "public: 
void __thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z)
00455: Ack2Packet.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z) referenced in function "public: __clrcall 
Udt::Ack2Packet::Ack2Packet(void)" (??0Ack2Packet@Udt@@$$FQ$AAM@XZ)
00456: CongestionPacket.obj : error LNK2001: unresolved external symbol 
"public: void __thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z)
00457: ErrorPacket.obj : error LNK2001: unresolved external symbol "public: 
void __thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z)
00458: KeepAlivePacket.obj : error LNK2001: unresolved external symbol "public: 
void __thiscall CPacket::pack(int,void *,void *,int)" 
(?pack@CPacket@@$$FQAEXHPAX0H@Z)
00459: DataPacket.obj : error LNK2019: unresolved external symbol "public: int 
__thiscall CPacket::getLength(void)const " (?getLength@CPacket@@$$FQBEHXZ) 
referenced in function "public: __clrcall Udt::DataPacket::DataPacket(class 
CPacket const *)" (??0DataPacket@Udt@@$$FQ$AAM@PBVCPacket@@@Z)
00460: DataPacket.obj : error LNK2019: unresolved external symbol "public: int 
__thiscall CPacket::getMsgBoundary(void)const " 
(?getMsgBoundary@CPacket@@$$FQBEHXZ) referenced in function "public: enum 
Udt::MessageBoundary __clrcall Udt::DataPacket::MessageBoundary::get(void)" 
(?get@MessageBoundary@DataPacket@Udt@@$$FQ$AAM?AW413@XZ)
00461: DataPacket.obj : error LNK2019: unresolved external symbol "public: bool 
__thiscall CPacket::getMsgOrderFlag(void)const " 
(?getMsgOrderFlag@CPacket@@$$FQBE_NXZ) referenced in function "public: bool 
__clrcall Udt::DataPacket::InOrder::get(void)" 
(?get@InOrder@DataPacket@Udt@@$$FQ$AAM_NXZ)
00462: DataPacket.obj : error LNK2019: unresolved external symbol "public: int 
__thiscall CPacket::getMsgSeq(void)const " (?getMsgSeq@CPacket@@$$FQBEHXZ) 
referenced in function "public: int __clrcall 
Udt::DataPacket::MessageNumber::get(void)" 
(?get@MessageNumber@DataPacket@Udt@@$$FQ$AAMHXZ)
00463: DataPacket.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall CPacket::setLength(int)" (?setLength@CPacket@@$$FQAEXH@Z) referenced 
in function "public: void __clrcall 
Udt::DataPacket::Write(int,cli::array<unsigned char >^,int,int)" 
(?Write@DataPacket@Udt@@$$FQ$AAMXHP$01AEHH@Z)
00464: Packet.obj : error LNK2019: unresolved external symbol "public: int 
__thiscall CPacket::getType(void)const " (?getType@CPacket@@$$FQBEHXZ) 
referenced in function "public: static class Udt::Packet ^ __clrcall 
Udt::Packet::Wrap(class CPacket const *)" 
(?Wrap@Packet@Udt@@$$FSMP$AAV12@PBVCPacket@@@Z)
00465: Packet.obj : error LNK2019: unresolved external symbol "public: int 
__thiscall CPacket::getFlag(void)const " (?getFlag@CPacket@@$$FQBEHXZ) 
referenced in function "public: static class Udt::Packet ^ __clrcall 
Udt::Packet::Wrap(class CPacket const *)" 
(?Wrap@Packet@Udt@@$$FSMP$AAV12@PBVCPacket@@@Z)
00466: Packet.obj : error LNK2019: unresolved external symbol "public: 
__thiscall CPacket::CPacket(void)" (??0CPacket@@$$FQAE@XZ) referenced in 
function "public: __clrcall Udt::Packet::Packet(void)" 
(??0Packet@Udt@@$$FQ$AAM@XZ)
00467: Packet.obj : error LNK2019: unresolved external symbol "public: 
__thiscall CPacket::~CPacket(void)" (??1CPacket@@$$FQAE@XZ) referenced in 
function "public: void * __thiscall CPacket::`scalar deleting 
destructor'(unsigned int)" (??_GCPacket@@$$FQAEPAXI@Z)
00468: Socket.obj : error LNK2019: unresolved external symbol "public: 
__thiscall CUDTCC::CUDTCC(void)" (??0CUDTCC@@$$FQAE@XZ) referenced in function 
"public: virtual class CCC * __thiscall CCCFactory<class CUDTCC>::create(void)" 
(?create@?$CCCFactory@VCUDTCC@@@@$$FUAEPAVCCC@@XZ)
00469: C:\_CODE\UDT\udt-net\UdtProtocol\bin\Debug\Win32\UdtProtocol.dll : fatal 
error LNK1120: 26 unresolved externals

I cannot find the class definition for CPacket in the code checked out from the 
Mercurial repository.

Thanks,
Kevin

Original issue reported on code.google.com by kco...@gmail.com on 17 Apr 2013 at 5:58

GoogleCodeExporter commented 9 years ago
Sorry, I didn't check the closed issues.  I see this issue was already 
addressed.

Original comment by kco...@gmail.com on 17 Apr 2013 at 6:01

GoogleCodeExporter commented 9 years ago
I was able to build successfully by adding the UDT_API tag to the classes 
CPacket and CUDTCC.

Thanks,
Kevin

Original comment by kco...@gmail.com on 17 Apr 2013 at 6:42

GoogleCodeExporter commented 9 years ago
I'm glad you were able to resolve your issue. I added your last comment to the 
dev environment setup instructions.

Original comment by cthomas7...@gmail.com on 17 Apr 2013 at 8:33