Page 1 of 1

Linking btScalar.h into shared library

Posted: Fri Jul 14, 2017 4:52 pm
by jchen114
Hello,

I'm trying to build a Shared Library and I am using Bullet's source files. I've included Bullet3Common and LinearMath source files in my project. The problem is when I try to build my shared library, I get a bunch of errors saying:
LNK2001 unresolved external symbol __imp_sqrtf
and various other math-like functions. I believe these are found in the btScalar.h file.
It seems like those functions aren't exported correctly and I'm having trouble figuring out the correct way to do this.
Is it possible that there may be clashing libraries that have the same method signatures?

Thank you.

Re: Linking btScalar.h into shared library

Posted: Tue Jul 18, 2017 5:35 am
by drleviathan
It is a linking error. I would guess you are missing the standard math lib in your link configuration, or have some other Visual Studio project configuration error. That is the limit of helpful info I can provide: I'm not a Windows dev.