[erlang-questions] Questions about how to link erl_interface.lib?

._ yelt@REDACTED
Sun Nov 16 03:35:52 CET 2014


Hi all,

         I meet a problem when compiling port examples from the otp
document.

 

         I use VS 2010 and erl6.2(64bit). The compiler complains that it
cannot find symbols, such as _erl_free_term, _erl_free_compound .

 

         Below is the command line:

                   

                   Link:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe 

/ERRORREPORT:PROMPT 

/OUT:"C:\Projects\extprg\Debug\extprg.exe" 

/NOLOGO 

/LIBPATH:"C:\Projects\extprg\extprg\..\..\..\..\..\..\Program
Files\erl6.2\usr\lib" 

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 

/MANIFEST 

/ManifestFile:"Debug\extprg.exe.intermediate.manifest" 

/MANIFESTUAC:"level='asInvoker' uiAccess='false'" 

/DEBUG 

/PDB:"C:\Projects\extprg\Debug\extprg.pdb" 

/TLBID:1 

/DYNAMICBASE 

/NXCOMPAT

/IMPLIB:"C:\Projects\extprg\Debug\extprg.lib"

/MACHINE:X86 Debug\complex.obj Debug\ei.obj Debug\erl_comm.obj

         

         I use dumpbin.exe on erl_interface.lib, there is a entry of
_erl_free_term.

 

         I don’t now how to fix this problem, may someone give me some
clues? Or, should I use erl-32-bit?

         

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141116/552bb3c2/attachment.htm>


More information about the erlang-questions mailing list