Compile Magma dll on 64-bit Win7 with visual Studio 2008

Open discussion for MAGMA

Compile Magma dll on 64-bit Win7 with visual Studio 2008

Postby LuLuTian » Wed Mar 28, 2012 10:44 am

Hi,

I want to use Magma API Function like "ApiInitialize", "ApiSetProject" etc for my master program. I tried compile magma on Win 7 with visual studio 2008 professional edition.

I've linked the "include" directory, "lib" directory. So VS can find header files and lib with no problems. However, I am having difficulties to link the dll files to VS. I've done the following things in VS so far:

1. In the project property, under configuration properties, I set environment to "PATH=%PATH%;C:\MAGMA5\v5.1.0\WIN64_XP\bin". (C:\MAGMA5\v5.1.0\WIN64_XP\bin is the place where all the dll files are listed/)

2. In the project property, under configuration properties-Linker, I set additional library directories to "C:\MAGMA5\v5.1.0\WIN64_XP\bin".

3. In the project property, under configuration properties-Linker-input, I set additional Dependencies to "C:\MAGMA5\v5.1.0\WIN64_XP\bin\Api.lib C:\MAGMA5\v5.1.0\WIN64_XP\bin\Api5.lib"

4. In the project property, under configuration properties-Linker-Advance, I set import Library to "C:\MAGMA5\v5.1.0\WIN64_XP\bin\Api.lib C:\MAGMA5\v5.1.0\WIN64_XP\bin\Api5.lib"

5. In the project property, under configuration properties-Resources, I set additional include directories to "C:\MAGMA5\v5.1.0\WIN64_XP\bin\Api.lib C:\MAGMA5\v5.1.0\WIN64_XP\bin\Api5.lib"

6. In the project property, under configuration properties-Build Events, I set command Line to "path=C:\MAGMA5\v5.1.0\WIN64_XP\bin;"

7. In the project property, under common properties, in the additional reference serach paths, I add a path "C:\MAGMA5\v5.1.0\WIN64_XP\bin;"

8. In Tools-Options- Projects and Solutions- VC++ Driectories, under platform x64 in the directories of executable files, I add a new line "C:\MAGMA5\v5.1.0\WIN64_XP\bin"

9. I also add "C:\MAGMA5\v5.1.0\WIN64_XP\bin" to windows environment variable path.

However, VS still cannot find the dll, for example, Api.dll. VS also gives error"Native' has exited with code 126 (0x7e)." or "Native' has exited with code 255."

Could you please help me out?

Thanks!
LuLuTian
 
Posts: 2
Joined: Wed Mar 28, 2012 9:50 am

Re: Compile Magma dll on 64-bit Win7 with visual Studio 200

Postby mgates3 » Thu May 03, 2012 10:54 am

From the function names and version numbers, it looks like you are referring to a different magma software than the MAGMA linear algebra library that ICL produces. You will have to contact the appropriate vendor for support.
-mark
mgates3
 
Posts: 427
Joined: Fri Jan 06, 2012 2:13 pm


Return to User discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron