Re: Help with Matlink, MaMa package
- To: mathgroup at smc.vnet.net
- Subject: [mg53279] Re: Help with Matlink, MaMa package
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Tue, 4 Jan 2005 03:13:03 -0500 (EST)
- Organization: Uni Leipzig
- References: <co1f4t$sl9$1@smc.vnet.net> <200411251050.FAA21516@smc.vnet.net> <cr5k0t$170$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, are you sure, that the linker find the MathLink library ml32i2m.lib ? And where you are running mprep ? Regards Jens "Namrata Khemka" <namrata.khemka at gmail.com> schrieb im Newsbeitrag news:cr5k0t$170$1 at smc.vnet.net... > Hi everyone, > I have successfully managed to run the built in mathlink examples like > the addtwo. > > I was trying to compile the MaMa package but I have been getting > various errors. I downloaded the files from: > http://library.wolfram.com/infocenter/MathSource/618/ > > The linking of the files (from the .bat which I have attached below) > gives me errors: > MaMatm.obj:error LNK2005: _IconProcedure@16 already defined in MaMa.obj > I have similar errors with different variable names, _MLAbort, > _MLDone... and so on.. > > The other linking error that I am getting is: > MaMa.obj: error LNK2019: unresolved external symbol _MatlabOpen > referenced in function _tr0 > > I have Mathematica 5.0 and was wondering if anyone would have any > suggestions as to why I am getting these errors. > > Thanks a lot, > Namrata > > > > The .bat which I have looks like: > C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO .NET 2003\Common7\Tools\VSVARS32 > x86 > set PATH=C:\Program Files\Wolfram > Research\Mathematica\5.0\AddOns\MathLink\DeveloperKit\Windows\CompilerAdditions\mldev32\bin;%PATH% > set INCLUDE=C:\Program Files\Wolfram > Research\Mathematica\5.0\AddOns\MathLink\DeveloperKit\Windows\CompilerAdditions\mldev32\include;C:\PROGRAM > FILES\MICROSOFT VISUAL STUDIO .NET > 2003\Vc7\PlatformSDK\Include;%include% > set LIB=C:\Program Files\Wolfram > Research\Mathematica\5.0\AddOns\MathLink\DeveloperKit\Windows\CompilerAdditions\mldev32\lib;C:\PROGRAM > FILES\MICROSOFT VISUAL STUDIO .NET 2003\Vc7\PlatformSDK\Lib;%lib% > SET CL=/nologo /c /DWIN32 /D_WINDOWS /W3 /ML /O2 /DNDEBUG > SET LINK=/NOLOGO /SUBSYSTEM:windows /INCREMENTAL:no kernel32.lib > user32.lib gdi32.lib > MPREP MaMa.tm -o MaMatm.c > CL MaMa.c MaMatm.c > LINK MaMa.obj MaMatm.obj ml32i2m.lib /OUT:MaMa.exe >