# LNK2019 on _imp_memmove_s

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

## 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 on other sites
*Bump*

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

1. 1
2. 2
3. 3
Rutin
15
4. 4
5. 5

• 10
• 9
• 9
• 11
• 11
• ### Forum Statistics

• Total Topics
633682
• Total Posts
3013307
×