Page 1 of 1

FileZilla Server compile: error LNK2019: unresolved external symbol __except_handler4_common referenced in function __e

Posted: 2019-04-26 14:30
by checkitout
HI Guys, I have been trying to compile FileZilla Server for 3 days (so I can change how RNTO behaves and maybe contribute other stuff).
I got openssl, zlib, libfilezilla compiled. Updated Dependencies.prop. When compiling FileZilla Server I get:

1>------ Build started: Project: FileZilla Server, Configuration: Debug Win32 ------
1>Accounts.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>zlibstat.lib(zutil.obj) : warning LNK4217: locally defined symbol _free imported in function _zcfree
1>zlibstat.lib(zutil.obj) : warning LNK4217: locally defined symbol _malloc imported in function _zcalloc
1>MSVCRTD.lib(_chandler4gs_.obj) : error LNK2019: unresolved external symbol __except_handler4_common referenced in function __except_handler4
1>F:\vcsrc2017\public\filezilla_server\Debug\FileZilla Server.exe : fatal error LNK1120: 1 unresolved externals
1>Done building project "FileZilla server.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

I changed vc10 to vc14 in Dependencies.prop for zlib...
<zlib_lib_debug>F:\vcsrc2017\public\filezilla_server\zlib-1.2.11\contrib\vstudio\vc14\x86\ZlibStatDebug</zlib_lib_debug>
Was that right?
Thanks.

Re: FileZilla Server compile: error LNK2019: unresolved external symbol __except_handler4_common referenced in function

Posted: 2019-04-26 17:46
by botg
All libraries need to link against the same variant of msvcrt. Don't mix shared/static or debug/release.
HI Guys, I have been trying to compile FileZilla Server for 3 days (so I can change how RNTO behaves and maybe contribute other stuff).
Much appreciated. Please note that FileZIlla Server is currently on hold, preparation is on the way to completely rewrite it from scratch.

Re: FileZilla Server compile: error LNK2019: unresolved external symbol __except_handler4_common referenced in function

Posted: 2019-04-26 21:07
by boco
Great news!