Page 1 of 1

H323Plus "Simple" sample fails to build/Unresolved external

Posted: Tue Feb 24, 2015 6:46 pm
by mr.newsgroupguy
I am new to H323. I am upgrading a project that was originally written in VS2005 to VS2013. I have over 500 linker errors whenever I try to build my project using the original libs that were built by the previous developer.
So I decided to get the latest ptlib and H323Plus files and rebuild them. Now I am down to just one linker error. I tried to get the H323Plus sample project "simple" to build in VS2013 but it has the exact same linker error. The error is as follows:

Code: Select all

h323plus.lib(h323ep.obj) : error LNK2019: unresolved external symbol "public:          __thiscall H323_RFC4103Handler::H323_RFC4103Handler(enum H323Channel::Directions,class  H323Connection &,unsigned int)" (??0H323_RFC4103Handler@@QAE@W4Directions@H323Channel@@AAVH323Connection@@I@Z) referenced in function "public: virtual class H323_RFC4103Handler * __thiscall H323EndPoint::CreateRFC4103ProtocolHandler(enum H323Channel::Directions,class H323Connection &,unsigned int)" (?CreateRFC4103ProtocolHandler@H323EndPoint@@UAEPAVH323_RFC4103Handler@@W4Directions@H323Channel@@AAVH323Connection@@I@Z)
Any help would be greatly appreciated.

Re: H323Plus "Simple" sample fails to build/Unresolved exter

Posted: Fri Mar 13, 2015 4:31 pm
by mr.newsgroupguy
Solution:

In the H323 solution I noticed that two files were not included.
  1. \h323plus\src\h323t140.cxx was missing from the "Source Files"
  2. \h323plus\include\h323t140.h was missing from "Header Files"
Once I added both to the Solution I was able to build and link without any errors.

Re: H323Plus "Simple" sample fails to build/Unresolved exter

Posted: Sun Mar 15, 2015 5:04 pm
by willamowius
Thanks for the update!

You probably converted the VS 2005 project for VS 2013.
I added the missing files to the 2005 project now.

As a general rule, its always best to use the latest project file for conversions to a new compiler.