Pelles C forum

C language => Expert questions => Topic started by: tpekar on July 28, 2011, 09:26:54 PM

Title: POLINK: error: Unresolved external symbol '_memicmp@12'.
Post by: tpekar on July 28, 2011, 09:26:54 PM
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?
Title: Re: POLINK: error: Unresolved external symbol '_memicmp@12'.
Post by: CommonTater on July 28, 2011, 09:43:06 PM
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.