Sign in to follow this  

LNK2019 on _imp_memmove_s

Recommended Posts

I was happely coding away when I suddenly got the following error. I have no idea what I did to get it. And since link errors never give a line or something, I dont know where to start looking. Any ideas?
Error	84	error LNK2019: unresolved external symbol __imp__memmove_s referenced in function "int * __cdecl std::_Copy_backward_opt<int *,int *,struct std::random_access_iterator_tag>(int *,int *,int *,struct std::random_access_iterator_tag,struct std::_Scalar_ptr_iterator_tag,struct std::_Range_checked_iterator_tag)" (??$_Copy_backward_opt@PAHPAHUrandom_access_iterator_tag@std@@@std@@YAPAHPAH00Urandom_access_iterator_tag@0@U_Scalar_ptr_iterator_tag@0@U_Range_checked_iterator_tag@0@@Z)	dfdatalibrary.lib

Share this post

Link to post
Share on other sites

Okey, Ive found out whats causing the error. Leaving the following line uncommented brings it:
DFData::DFCreature c;

Simply instancing that class causes the error. Problem is, other projects linking that library can create an instance. So I must be doing something wrong.

I have tried compiling it in both vs2005 and vs2008 express. No difference.

Im getting desperate, it seems that Ive tried everything. Tried switching between unicode and multi-byte but that had no effect either.

Google gives nothing, except that it seems to be quite a few people are encountering this.

Any ideas? Any at all...

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this