HalfTest Example - Compile Error with VS2013 (64-bit)

80 views
Skip to first unread message

Adam Hartshorne

unread,
Apr 5, 2017, 5:39:20 PM4/5/17
to ptex
Hi,

Using the latest version of Ptex from Git repo, after using Cmake to create VS projects, Ptex library compiles but the halftest demo returns the following 2 errors.

halftest.obj : error LNK2001: unresolved external symbol "public: static unsigned int * Ptex::v2_2::PtexHalf::h2fTable" (?h2fTable@PtexHalf@v2_2@Ptex@@2PAIA)
3>halftest.obj : error LNK2001: unresolved external symbol "public: static unsigned short * Ptex::v2_2::PtexHalf::f2hTable" (?f2hTable@PtexHalf@v2_2@Ptex@@2PAGA)

A couple of months ago I built this library as a 32-bit and I don't remember any issues, so I have to presume it is something to do with 64-bit.

Any help much appreciated.

Brent Burley

unread,
Apr 5, 2017, 5:50:04 PM4/5/17
to pt...@googlegroups.com
The PtexHalf tables switched to static generation quite a while ago, and I don't know of any build problems. The CMakeLists.txt file includes PtexHalf.cpp which defines and exports the tables. I do see there was a fix for the static tables on 3-29-2016 for building a Windows DLL, but I don't personally build on Windows so I don't know what other problems there might be. Could it be you have an older Ptex library in your build path?

--

---
You received this message because you are subscribed to the Google Groups "ptex" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ptex+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Hartshorne

unread,
Apr 6, 2017, 7:32:14 AM4/6/17
to ptex
I think you might have been correct.

I cleaned out my local github clone and  vs build directory, and started from scratch. It is now building without error.
To unsubscribe from this group and stop receiving emails from it, send an email to ptex+uns...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages