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

Sergej Jurecko sergej.jurecko@REDACTED
Sun Nov 16 10:08:30 CET 2014


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. 


Sergej

On 16 Nov 2014, at 03:35, ._ <yelt@REDACTED> wrote:

> 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?
>         
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

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


More information about the erlang-questions mailing list