Author Topic: Can't get cpp samples to compile  (Read 2116 times)

instinct-vfx

  • Full Member
  • ***
  • Posts: 16
Can't get cpp samples to compile
« on: February 04, 2013, 09:34:16 AM »
Heya,

I can't seem to find a way to compile the samples. I tried compiling qbjobs. First up a lot of XML_Parser unresolved externals. So i guessed and added libexpat to the dependencies. Removes most. I am left with two errors then:

1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z) already defined in qbjobs.obj
1>api.lib(QbConnection.obj) : error LNK2019: unresolved external symbol _GetAdaptersInfo@8 referenced in function "public: static class QbAddress __cdecl QbConnection::primaryaddress(void)" (?primaryaddress@QbConnection@@SA?AVQbAddress@@XZ)

For the first i tried ignoring that specific library, but that lead to LOADS of unresolved externals. For the second i have no idea. Any pointers?

Regards,
Thorsten

P.S. are there any VisualStudio Version constraints?

shinya

  • Administrator
  • *****
  • Posts: 224
Re: Can't get cpp samples to compile
« Reply #1 on: February 05, 2013, 12:59:59 AM »
Hi Thornsten,

The .vcproj and .sln files were out of date-- I've fixed them, and am
attaching it to this posting.  Please give them a try, and let me know
if that resolves your issue.

Also, please note that we use Visual Studio 2005 to build Qube.

Thanks!

-shinya.


[attachment deleted by admin]