Re: Mathlink for MMA3.0 and Borland C++ 4.5
- To: mathgroup at smc.vnet.net
- Subject: [mg8662] Re: Mathlink for MMA3.0 and Borland C++ 4.5
- From: Eckhard Hennig <hennig at itwm.uni-kl.de>
- Date: Mon, 15 Sep 1997 02:48:51 -0400
- Organization: ITWM
- Sender: owner-wri-mathgroup at wolfram.com
Yuri Franken wrote: > > I'm having problems linking the mathlink sample program 'addtwo' with > Borland C++ compiler v 4.5. BC++ doesn't understand the ML32I1B.LIB file > that shipped with MMA3.0. > > Therefore I tried to make my own LIB by the statement IMPLIB ML32I1B.LIB > ML32I1.DLL. However, that failed too. IMPLIB came with an 'exception > c0000005: Acces violation' error. > > I also tried to do the same thing using the Mathlink for MMA2.2, and > that worked fine. I therefore suspect BC++ 4.5 and Mathlink for MMA 3.0 > are not compatible (in other words BC++4.5 is too old). > > Do any of you developers know if indeed I should use a newer C-compiler, > or that I made a terrible mistake ? Apart from the library problem you should consider upgrading to Borland C++ version 5 anyway because 4.5 is not a very comfortable tool for software development under Windows 95/NT (no long filenames, no 32bit debugging in IDE, etc). However, there is a workaround for your problem if you do not want to buy a compiler upgrade. You can write MathLink programs for Mathematica 3.0 using the old MathLink library for Mathematica 2.2.3 (mlink32.dll). This works quite well, provided you use TCP as link protocol. There should be no problem with creating a Borland 4.5 .LIB file from mlink32.dll using IMPLIB. HTH, Eckhard ---------------------------------------------------------------------------- Eckhard Hennig mailto:hennig at itwm.uni-kl.de Institut fuer Techno- und Wirtschaftsmathematik e.V. (ITWM) Erwin-Schroedinger-Strasse, 67663 Kaiserslautern, Germany Voice: +49-(0)631-205-3126 Fax: +49-(0)631-205-3616 http://www.e-technik.uni-kl.de/organizations/itwm/people/Hennig/Eckhard.html ----------------------------------------------------------------------------