Quantcast

[Arpack-ng] Error during compilation of example with MVS2015

classic Classic list List threaded Threaded
2 messages Options
Jose ALVES Jose ALVES
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Arpack-ng] Error during compilation of example with MVS2015

Hello,

 

I have downloaded the project to do some tryouts. I opened and compiled the project using VS2015 with Intel Parallel Studio We2016.

 

The project compiled without errors and I obtained the .lib .dll needed…

 

After that I wanted to test and example case: say the file cnsimp.f;  For doing that I created a new project as shown below

 

 

In the project “Test-Examples” I included the library by doing as follows: properties -> Linker -> Input -> Additional Dependencies -> (PATH)\arpack-ng.lib

 

 

But when compiling I get the following errors

 

Severity

Code

Description

Project

File

Line

Suppression State

Error

 

error LNK2019: unresolved external symbol _CAXPY referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _CNAUPD referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _SMOUT referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _SLAPY2 referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _CNEUPD referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _SCNRM2 referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

fatal error LNK1120: 6 unresolved externals

 

Release\Test-Examples.exe

 

 

Warning

 

warning LNK4272: library machine type 'x64' conflicts with target machine type 'X86'

 

D:\Perforce\arpack-ng\VISUAL_STUDIO\Release\arpack-ng.lib

1

 

 

I found that a similar question was posted here https://forge.scilab.org/index.php/p/arpack-ng/issues/1334/ but without answer.

 

I would really appreciate if someone could give me some idea on how to get around this (probably) basic problem.

 

My sincerest regards,

 

José R. Alves Z.

R&D Engineer

Phone : + 33(0)4 92 92 38 70

Email: [hidden email]

 

TRANSVALOR S.A.

Parc de Haute Technologie

694 Avenue du Dr. Maurice Donat

06255 Mougins cedex - France

Web: www.transvalor.com

 


_______________________________________________
Arpack-ng mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/arpack-ng
Andrew Cunningham Andrew Cunningham
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error during compilation of example with MVS2015

Hi Jose,
 it looks like you are trying to build a 32 bit EXE using a 64-bit arpack library. I would assume that you have no interest in 32-bit, so I would make sure you have/create a 64-bit configuration for your test project. Be careful when building your DLL. Check that 64-bit and 32-bit builds have separate destination directories so they don't step on each other. I just delete all 32-bit configurations.

Then  go to the settings for your project,  FORTRAN ->Libraries and make sure "Use Intel MKL" is turned on with appropriate settings (e.g. Parallel). That should cause the problems with "unresolved" BLAS/LAPACK externals to go away.

Andrew



On Tue, Jul 26, 2016 at 8:03 AM, Jose ALVES <[hidden email]> wrote:

Hello,

 

I have downloaded the project to do some tryouts. I opened and compiled the project using VS2015 with Intel Parallel Studio We2016.

 

The project compiled without errors and I obtained the .lib .dll needed…

 

After that I wanted to test and example case: say the file cnsimp.f;  For doing that I created a new project as shown below

 

 

In the project “Test-Examples” I included the library by doing as follows: properties -> Linker -> Input -> Additional Dependencies -> (PATH)\arpack-ng.lib

 

 

But when compiling I get the following errors

 

Severity

Code

Description

Project

File

Line

Suppression State

Error

 

error LNK2019: unresolved external symbol _CAXPY referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _CNAUPD referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _SMOUT referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _SLAPY2 referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _CNEUPD referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

error LNK2019: unresolved external symbol _SCNRM2 referenced in function _MAIN__

 

cnsimp.obj

 

 

Error

 

fatal error LNK1120: 6 unresolved externals

 

Release\Test-Examples.exe

 

 

Warning

 

warning LNK4272: library machine type 'x64' conflicts with target machine type 'X86'

 

D:\Perforce\arpack-ng\VISUAL_STUDIO\Release\arpack-ng.lib

1

 

 

I found that a similar question was posted here https://forge.scilab.org/index.php/p/arpack-ng/issues/1334/ but without answer.

 

I would really appreciate if someone could give me some idea on how to get around this (probably) basic problem.

 

My sincerest regards,

 

José R. Alves Z.

R&D Engineer

Phone : <a href="tel:%2B%2033%280%294%2092%2092%2038%2070" value="+33492923870" target="_blank">+ 33(0)4 92 92 38 70

Email: [hidden email]

 

TRANSVALOR S.A.

Parc de Haute Technologie

694 Avenue du Dr. Maurice Donat

06255 Mougins cedex - France

Web: www.transvalor.com

 


_______________________________________________
Arpack-ng mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/arpack-ng



_______________________________________________
Arpack-ng mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/arpack-ng
Loading...