<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Brian,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You are right. After changing the order, all wcecompatex.lib
related link errors are gone!<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks a lot.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Also thank Pierre for dropping me another suggestion.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mike,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>When you get chance to update next time, you may consider
changing this line (in evc.mak):<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>From:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>LIBS=/NODEFAULTLIB coredll.lib corelibc.lib winsock.lib
wcecompatex.lib libeay32.lib ssleay32.lib<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>To:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>LIBS=/NODEFAULTLIB winsock.lib wcecompatex.lib libeay32.lib
ssleay32.lib coredll.lib corelibc.lib<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thank you all.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Robert<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Brian Wilkins
[mailto:bwilkins@gmail.com] <br>
<b>Sent:</b> Wednesday, November 28, 2012 5:15 PM<br>
<b>To:</b> Bao, Robert<br>
<b>Subject:</b> Re: [stunnel-users] WinCE link errors<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p>Maybe try changing the link order...?<o:p></o:p></p>

<div>

<p class=MsoNormal>On Nov 28, 2012 5:10 PM, "Bao, Robert" <<a
href="mailto:rbao@tycoint.com">rbao@tycoint.com</a>> wrote:<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Dear
Mike and WinCE stunnel users out there,<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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.<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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.<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Note:
I could resolve the errors at the bottom, but I have trouble get rid of the
errors relating to wcecompatex.lib(redir.obj).<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thank
you for your time.<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: fopen already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: fclose already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: fread already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: fwrite already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: _getstdfilex already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: _fileno already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: fflush already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: feof already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: ferror already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: clearerr already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: fseek already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: ftell already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: _setmode already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: fgets already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: error LNK2005: fprintf already defined in coredll.lib(COREDLL.dll)<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: fopen already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: fclose already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: fread already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: fwrite already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: _getstdfilex already defined in coredll.lib(COREDLL.dll);
second definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: _fileno already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: fflush already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: feof already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: ferror already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: clearerr already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: fseek already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: ftell already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: _setmode already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: fgets already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>wcecompatex.lib(redir.obj)
: warning LNK4006: fprintf already defined in coredll.lib(COREDLL.dll); second
definition ignored<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>  
Creating library ..\bin\ARMV4I\tstunnel.lib and object ..\bin\ARMV4I\tstunnel.exp<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>options.obj
: error LNK2001: unresolved external symbol WSAGetLastError<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>network.obj
: error LNK2001: unresolved external symbol WSAGetLastError<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>stunnel.obj
: error LNK2019: unresolved external symbol WSAGetLastError referenced in
function daemon_loop<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>ctx.obj
: error LNK2001: unresolved external symbol WSAGetLastError<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>client.obj
: error LNK2019: unresolved external symbol WSAGetLastError referenced in
function init_remote<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>log.obj
: error LNK2001: unresolved external symbol WSAGetLastError<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>client.obj
: error LNK2019: unresolved external symbol hwnd referenced in function
win_new_chain<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>log.obj
: error LNK2019: unresolved external symbol hwnd referenced in function
s_strerror<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>options.obj
: error LNK2001: unresolved external symbol hwnd<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>log.obj
: error LNK2019: unresolved external symbol WSASetLastError referenced in
function s_log<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>nogui.obj
: error LNK2019: unresolved external symbol main_execute referenced in function
main<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>..\bin\ARMV4I\tstunnel.exe
: fatal error LNK1120: 4 unresolved externals<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>NMAKE
: fatal error U1077: 'link' : return code '0x460'<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Robert
Bao<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Software
House<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Tyco
International<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><a
href="tel:978-577-4202" target="_blank">978-577-4202</a><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Explore
our new Tyco Online Learning Center Web-based Training Bundles at: <a
href="http://www.swhouse.com/support/tyco_online_learning_center.aspx"
target="_blank">www.swhouse.com/support/tyco_online_learning_center.aspx</a><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:8.0pt'>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.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
stunnel-users mailing list<br>
<a href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br>
<a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users"
target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><o:p></o:p></p>

</div>

</div>

</body>

</html>