POLINK: error: Unresolved external symbol '_memicmp@12'.

Started by tpekar, July 28, 2011, 09:26:54 PM

Previous topic - Next topic

tpekar

I have 2 references to memicmp in static libraries and I get the above error from polink.  Microsoft documentation says memicmp is in libc.lib or libcmt.lib.  Where do I find these?

CommonTater

First...  Look it up in your help file... In case you haven't discovered it yet, Pelles C comes with just about the best help file I've ever seen... Highlight the keyword and press F1.

Anway... memicmp() is not a standard C function.   This means that in Pelles C it is prefixed with an underscore as in ... _memicmp()  ....  #include <string.h> to access it and check "Define Compatibility Names" in your Project Settings.