Linking btScalar.h into shared library

Post Reply
jchen114
Posts: 12
Joined: Wed Jun 08, 2016 1:39 am

Linking btScalar.h into shared library

Post 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.
User avatar
drleviathan
Posts: 849
Joined: Tue Sep 30, 2014 6:03 pm
Location: San Francisco

Re: Linking btScalar.h into shared library

Post 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.
Post Reply