Compiling problems

Serge Aleynikov <>
Fri Jun 13 15:46:39 CEST 2003


I was using Borland's C++ compiler to compile the library.  Please look 
at my previous posts that indicated the changes required to get it 
working.  Perhaps you would need to do something similar in MS C++.

Serge

 wrote:
>>Try to recompile the erl_interface library using your compiler, include
>>the built ei.lib in your project, and try to build the project.
> 
> 
> I'm really having trouble with the c part of the program, so ....
> aby pointers on how to recompile the library? (ei, and erl_interface)
> ... also, when i call erl_init(NULL, 0), [compiled with /force:unresolved]
> i get a application error:
> "The instruction at xxx referenced memory at xxx. The memory could not be
> written.",
> I assume this also has to do with re-compile of the libs? (Althoug erl_init
> is not unresolved)?
> 
> 
>>Alternatively, try to turn on the ANSI C compiler compatibility.
>>
>>If this doesn't help, perhaps, try to diable name mangling in the
>>compiler (this is what causes @8 and @4 suffixes in your errors).  I am
>>not 100% sure if you can disable this option in the C++ compilation
>>mode, as in C++ this option is directly related to parameter
> 
> overloading...
> 
>>Regards,
>>
>>Serge
>>
>>-- 
>>================================================================
>>| Serge Aleynikov                          Tel: (973) 438-3436
>>| MIS Telecom                              Fax: (973) 438-1457
>>| IDT Corp.                                   
>>================================================================
>>
>> wrote:
>>
>>>Hi all,
>>>
>>>I've got a winblowz sybase / erlang interface
>>>having trouble compiling c code with visual c++ 6.0.  I am using the
>>
> right
> 
>>>libs, but i keep on getting the following unresolved externals.
>>>
>>>sybasedbi.obj : error LNK2001: unresolved external symbol
>>>
>>>sybasedbi.obj : error LNK2001: unresolved external symbol
>>
> 
> 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol
>>
> 
> 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol
>>>
>>>sybasedbi.obj : error LNK2001: unresolved external symbol 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol
>>
> 
> 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol 
>>>sybasedbi.obj : error LNK2001: unresolved external symbol
>>>
>>>sybasedbi.exe : fatal error LNK1120: 15 unresolved externals
>>>
>>>... and yes, i have to compile with ms vc, cause of the sybase
>>
> connectivity.
> 
>>>Looks familiar to anyone? ...
>>>
>>>I'm using erl5.1.2, and including ei.lib & erl_interface.lib
>>>
>>>Thanks,
>>>
>>>_____________________________
>>>Hendrik Bijker,
>>>Cell : 082-255-1630,
>>>ICQ : 215097587
>>>
>>>
>>
> ############################################################################
> 
>>>#########
>>>The information contained in this message and or attachments is intended
>>>only for the person or entity to which it is addressed and may contain
>>>confidential and/or privileged material. Any review, retransmission,
>>>dissemination or other use of, or taking of any action in reliance upon,
>>>this information by persons or entities other than the intended
>>
> recipient
> 
>>>is prohibited. If you received this in error, please contact the sender
>>
> and
> 
>>>delete the material from any system and destroy and copies.
>>>
>>
> ############################################################################
> 
>>>#########
>>>
>>
>>
>>
> 





More information about the erlang-questions mailing list