What is correct way to load zlib via LDFLAGS in a Makefile under LLVM?
c++, ios, makefile
Solution
The solution is to use -lz flag instead of -lzlib.
Tested, project linked.
Problem
my CFLAGS have ``` -I../../usr/local/sys/usr/include ``` which correctly loads zlib.h LDFLAGS are ``` LDFLAGS = -L../../usr/local/sys/usr/lib -lxml2 -lzlib ``` But when linker tries to link following occures ``` 1> + Linking project files... 1> ld: library not found for -lzlib 1> collect2: ld returned 1 exit status 1> make: *** [link] Error 1 ``` What could be the problem? Environment is iosdevenv under windows7 (so directory structure is different than on mac os)