zlib link error

Issues that occur when trying to compile FFmpeg.
Post Reply
dbyoung
Posts: 2
Joined: Sat Apr 15, 2017 10:38 am

zlib link error

Post by dbyoung » Sat Apr 15, 2017 10:42 am

config.log:

check_lib zlib.h zlibVersion -lz
check_func_headers zlib.h zlibVersion -lz
check_ld cc -lz
check_cc
BEGIN ./ffconf.tSbkAkUJ.c
1 #include <zlib.h>
2 #include <stdint.h>
3 long check_zlibVersion(void) { return (long) zlibVersion; }
4 int main(void) { int ret = 0;
5 ret |= ((intptr_t)check_zlibVersion) & 0xFFFF;
6 return ret; }
END ./ffconf.tSbkAkUJ.c
cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -D_WIN32_WINNT=0x0502 -nologo -c -Fo./ffconf.bvaFBwBS.o ./ffconf.tSbkAkUJ.c
ffconf.tSbkAkUJ.c
./compat/windows/mslink -nologo -LARGEADDRESSAWARE -out:./ffconf.bnVADbud.exe ./ffconf.bvaFBwBS.o zlib.lib psapi.lib advapi32.lib shell32.lib
ffconf.bvaFBwBS.o : error LNK2019: unresolved external symbol _zlibVersion referenced in function _check_zlibVersion
./ffconf.bnVADbud.exe : fatal error LNK1120: 1 unresolved externals

How to solve ?
thank!

CoRoNe
Posts: 20
Joined: Thu Aug 22, 2013 5:14 pm
Contact:

Re: zlib link error

Post by CoRoNe » Sun May 14, 2017 11:27 pm

Perhaps you can give us a bit more information; what library are you trying to build and how. etc...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest