compilation error: Undefined reference to strncmpW

Robert Shearman rob at codeweavers.com
Mon Jan 16 11:24:07 CST 2006


Peter Lemenkov wrote:

> ../../tools/winegcc/winegcc -B../../tools/winebuild -shared 
> ./shlwapi.spec assoc.o clist.o istream.o msgbox.o ordinal.o path.o 
> reg.o regstream.o shlwapi_main.o stopwatch.o string.o thread.o url.o 
> wsprintf.o  shlwapi.res -o shlwapi.dll.so -L../../dlls 
> -L../../dlls/oleaut32 -L../../dlls/ole32 -L../../dlls/user32 
> -L../../dlls/gdi32 -L../../dlls/advapi32 -L../../dlls/kernel32 
> -L../../dlls/ntdll -loleaut32 -lole32 -luser32 -lgdi32 -ladvapi32 
> -lkernel32 -lntdll -Wb,-doleaut32 -L../../libs/wine -lwine -luuid 
> -L../../libs/unicode -lwine_unicode -L../../libs/port -lwine_port
> string.o: In function 
> `StrStrW':/home/petro/work/projects/wine/dlls/shlwapi/string.c:531: 
> undefined reference to `strncmpW'


There must have been an warning before that error earlier in the 
compilation since strncmpW is defined as static.

-- 
Rob Shearman




More information about the wine-devel mailing list