H323Plus "Simple" sample fails to build/Unresolved external

Discussion related to implementation and use of the H.323 Plus H.323 stack at http://www.h323plus.org.
Post Reply
mr.newsgroupguy
Posts: 2
Joined: Tue Feb 24, 2015 6:33 pm
Contact:

H323Plus "Simple" sample fails to build/Unresolved external

Post by mr.newsgroupguy » Tue Feb 24, 2015 6:46 pm

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.

mr.newsgroupguy
Posts: 2
Joined: Tue Feb 24, 2015 6:33 pm
Contact:

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

Post by mr.newsgroupguy » Fri Mar 13, 2015 4:31 pm

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.

User avatar
willamowius
Posts: 39
Joined: Tue Sep 01, 2009 7:25 am
Contact:

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

Post by willamowius » Sun Mar 15, 2015 5:04 pm

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.
Jan Willamowius
Founder of the GNU Gatekeeper Project
https://www.gnugk.org
https://www.willamowius.com (H.323 support)

Post Reply