Dear Mike and WinCE stunnel users out there,
I am currently in the process of compiling/linking the
latest stunnel (4.54) for our ARM and WinCE 5.0 based device. I noticed that
this version requires coredll.lib and corelibc.lib in the final link process
(defined in the LIBS variable), which the old ones (e.g., version 4.33) didn’t.
Anyway, I got a lot of linking errors (see below), and just
wondering any of you have seen the same errors and how you get around with
these errors. If you have any other suggestions please feel free to let me know
too.
Note: I could resolve the errors at the bottom, but I have
trouble get rid of the errors relating to wcecompatex.lib(redir.obj).
Thank you for your time.
wcecompatex.lib(redir.obj) : error LNK2005: fopen already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: fclose already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: fread already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: fwrite already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: _getstdfilex
already defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: _fileno already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: fflush already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: feof already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: ferror already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: clearerr already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: fseek already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: ftell already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: _setmode already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: fgets already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : error LNK2005: fprintf already
defined in coredll.lib(COREDLL.dll)
wcecompatex.lib(redir.obj) : warning LNK4006: fopen already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: fclose already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: fread already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: fwrite already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: _getstdfilex
already defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: _fileno
already defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: fflush already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: feof already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: ferror already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: clearerr
already defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: fseek already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: ftell already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: _setmode
already defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: fgets already
defined in coredll.lib(COREDLL.dll); second definition ignored
wcecompatex.lib(redir.obj) : warning LNK4006: fprintf
already defined in coredll.lib(COREDLL.dll); second definition ignored
Creating library ..\bin\ARMV4I\tstunnel.lib and
object ..\bin\ARMV4I\tstunnel.exp
options.obj : error LNK2001: unresolved external symbol
WSAGetLastError
network.obj : error LNK2001: unresolved external symbol
WSAGetLastError
stunnel.obj : error LNK2019: unresolved external symbol
WSAGetLastError referenced in function daemon_loop
ctx.obj : error LNK2001: unresolved external symbol
WSAGetLastError
client.obj : error LNK2019: unresolved external symbol
WSAGetLastError referenced in function init_remote
log.obj : error LNK2001: unresolved external symbol
WSAGetLastError
client.obj : error LNK2019: unresolved external symbol hwnd
referenced in function win_new_chain
log.obj : error LNK2019: unresolved external symbol hwnd
referenced in function s_strerror
options.obj : error LNK2001: unresolved external symbol hwnd
log.obj : error LNK2019: unresolved external symbol
WSASetLastError referenced in function s_log
nogui.obj : error LNK2019: unresolved external symbol
main_execute referenced in function main
..\bin\ARMV4I\tstunnel.exe : fatal error LNK1120: 4
unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Robert Bao
Software House
Tyco International
978-577-4202
Explore our new Tyco Online Learning Center Web-based
Training Bundles at: www.swhouse.com/support/tyco_online_learning_center.aspx
This e-mail may contain or
have attached to it information or technology the export or re-export of which
is restricted by U.S. laws and regulations. By viewing this e-mail and any
attachments, the recipient agrees to the following: (i) the recipients use of
the contents of this e-mail and any attachments shall comply with all
applicable laws, rules and regulations, including, without limitation, U.S.
international trade laws and regulations, and (ii) the recipient may not
transfer or otherwise export or re-export any information or technology
contained in this e-mail or any attachment except in full compliance with the
export controls administered by the U.S. and other countries and any applicable
import and use restrictions.