Jump to content
  • Advertisement
Sign in to follow this  
garusher

DirectXTK compiling issue

This topic is 1072 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

I have a C++/CLI i am developing.

I have DirectXTK and i keep getting LNK2019 unresolved external symbol DirectX::SpriteBatch::Begin and SprintFont::DrawString.

 

I believe i followed the install instructions, actually i've tried both ways. 

a project to project reference and setting my projects VC++ directories/include and Library Directories explicitly.

 

I use the following in my source file.

# pragma comment (lib, "DirectXTK.lib")

 

so i'm stuck.

 

Thanks

Gary

 

 

Share this post


Link to post
Share on other sites
Advertisement

okay.

 

I implemented an Opaque pointer for my rendering class that contained the DirectXTK code that would not compile and turned /clr off for that source file.

 

now it compiles and runs. although i am getting stack overflows now.

 

Gary

Share this post


Link to post
Share on other sites

Commented out the DirectXTK stuff in my rendering class, still getting the StackOverflow error. 

 

the compiler moaned about XMMatrix not being 16bit aligned earlier, so i changed the function prototypes to void SetParentRotation(FXMMATRIX& matrix) from void SetParentRotation(FXMMATRIX matrix)

 

so i guess i will look into that as the cause.

 

Gary

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!