[erlang-questions] Compiling Erlang Interface with VC++ 2010 - LIB Issues

Edmond Begumisa ebegumisa@REDACTED
Mon Sep 27 16:40:48 CEST 2010


It looks to me like the VS linker is having trouble with winsock...

Try adding Ws2_32.lib to the link command line.

- Edmond -

On Sat, 25 Sep 2010 02:36:44 +1000, <k.rock@REDACTED> wrote:

> Dear Erlang Questions,
>
>
> When compiling an Erlang  Interface with VC++ 2010 I get the following
> compiler errors.
>
>
> 1>ei.lib(ei_resolve.o) : error LNK2019: unresolved external symbol
> __imp__gethostbyname@REDACTED referenced in function _ei_gethostbyname
>
> 1>ei.lib(ei_resolve.o) : error LNK2019: unresolved external symbol
> __imp__gethostbyaddr@REDACTED referenced in function _ei_gethostbyaddr
>
> 1>D:\Projects\C++_Exercises\SQLite\sqlite_port\Debug\sqlite_port.exe :  
> fatal
> error LNK1120: 2 unresolved externals
>
>
> Path set correctly to
>
>
> C:\Program Files (x86)\erl5.8.1\lib\erl_interface-3.7.1\lib\ei.lib
>
> C:\Program Files (x86)\erl5.8.1\lib\erl_interface-3.7.1\include\ei.h
>
>
> What is going wrong here.
>
>
> Thank you.
>
> Rock InformationTechnologies (India) Pvt.
> Dipl.-Ing.(FH) Klaus Rock
> Bonhoefferstrasse 37
> 73432 Aalen - Germany
> Tel    : ++49-7367-96500
> Mail  : k.rock@REDACTED
> <blocked::outbind://29-00000000CDB63B28533CCE4D9B973708CCF0FBF324562B00/mc/c
> ompose?to=k.rock@REDACTED>
>
>


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the erlang-questions mailing list