Linking issues with Opennurbs 6


(Sandip Ichake) #1

Hi @dale,

I’m facing issues to build my application, getting following linking errors:

error LNK2001: unresolved external symbol “public: static class ON_Interval const ON_Interval::ZeroToTwoPi” (?ZeroToTwoPi@ON_Interval@@2V1@B)
error LNK2001: unresolved external symbol “public: static class ON_Plane const ON_Plane::World_xy” (?World_xy@ON_Plane@@2V1@B)

Looking at the opennurbs 6 source code, I think static/const variables are initialized in opennurbs_statics.cpp file but somehow it is not getting resolved.

Please note that, I am able to build opennurbs.dll successfully and I have added opennurbs.h in my source code.

Please advise.

Thanks & Regards,
Sandip Ichake


(Dale Fugier) #2

Hi @sandip.ichake,

The openNURBS toolkit comes with several example projects that use openNURBS. How to these project differ from yours?

– Dale