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

Moderator: Project members

Post Reply
Message
Author
checkitout
500 Command not understood
Posts: 4
Joined: 2019-04-24 14:48

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

#1 Post by checkitout » 2019-04-26 14:30

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.

User avatar
botg
Site Admin
Posts: 32463
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

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

#2 Post by botg » 2019-04-26 17:46

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.

User avatar
boco
Contributor
Posts: 24776
Joined: 2006-05-01 03:28
Location: Germany

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

#3 Post by boco » 2019-04-26 21:07

Great news!
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

Post Reply