<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Best to use rebar. Add erts bin folder to system path, compile rebar on windows (copy rebar and rebar.cmd files to your project), create rebar.config and compile from visual studio console with rebar. <div><br></div><div><br></div><div>Sergej</div><div><br><div><div>On 16 Nov 2014, at 03:35, ._ <<a href="mailto:yelt@live.cn">yelt@live.cn</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="ZH-CN" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">Hi all,<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">         I meet a problem when compiling port examples from the otp document.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US"> </span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">         I use VS 2010 and erl6.2(64bit). The compiler complains that it cannot find symbols, such as _erl_free_term, _erl_free_compound .<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US"> </span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">         Below is the command line:<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">                  <o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">                   Link:<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 42pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; text-indent: 21pt;"><span lang="EN-US">C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 63pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; text-indent: 21pt;"><span lang="EN-US">/ERRORREPORT:PROMPT<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 63pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; text-indent: 21pt;"><span lang="EN-US">/OUT:"C:\Projects\extprg\Debug\extprg.exe"<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 63pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; text-indent: 21pt;"><span lang="EN-US">/NOLOGO<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 63pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; text-indent: 21pt;"><span lang="EN-US">/LIBPATH:"C:\Projects\extprg\extprg\..\..\..\..\..\..\Program Files\erl6.2\usr\lib"<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; text-indent: 21pt;"><span lang="EN-US">erl_interface.lib ei.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/MANIFEST<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/ManifestFile:"Debug\extprg.exe.intermediate.manifest"<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/MANIFESTUAC:"level='asInvoker' uiAccess='false'"<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/DEBUG<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/PDB:"C:\Projects\extprg\Debug\extprg.pdb"<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/TLBID:1<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/DYNAMICBASE<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/NXCOMPAT<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/IMPLIB:"C:\Projects\extprg\Debug\extprg.lib"<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 84pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">/MACHINE:X86 Debug\complex.obj Debug\ei.obj Debug\erl_comm.obj<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">        <o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">         I use dumpbin.exe on erl_interface.lib, there is a entry of _<i>erl_free</i>_term.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US"> </span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">         I don¡¯t now how to fix this problem, may someone give me some clues? Or, should I use erl-32-bit</span><span style="font-family: ËÎÌå;">£¿</span><span lang="EN-US"><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif;"><span lang="EN-US">        <o:p></o:p></span></div></div>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" style="color: purple; text-decoration: underline;">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" style="color: purple; text-decoration: underline;">http://erlang.org/mailman/listinfo/erlang-questions</a></div></blockquote></div><br></div></body></html>