LAPACK-VS-Example linking problem

Post here if you have a question about linking your program with LAPACK or ScaLAPACK library

LAPACK-VS-Example linking problem

Postby alex3375 » Thu Sep 01, 2011 5:44 pm

Hello,

Please help me with LAPACK-VS-Example linking problem.

I work under Windows 7. I have Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM and Intel Fortran Compiler 10.1.4159.2008.
I downloaded LAPACK libraries of LAPACK 3.3.0 and LAPACK-VS-Example Visual Studio project.
I added location of the LAPACK libraries to Linker > General > Additional Library Directory and the libraries’ names to Linker > Input > Additional Dependencies.
I compiled the Console1.obj successfully. However, linking failed with a message as follows

1>Linking...
1>LIBCMT.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>Release\SVD04.exe : fatal error LNK1120: 1 unresolved externals

Please suggest.
Thank you in advance,
Alex
alex3375
 
Posts: 2
Joined: Thu Sep 01, 2011 5:33 pm

Re: LAPACK-VS-Example linking problem

Postby admin » Thu Sep 01, 2011 5:48 pm

Never had this kind of problem,but Google says: http://support.microsoft.com/kb/125750
Otherwise, just download CMAKE (cmake.org) and build your own libraries for your machine.
Julie
admin
Site Admin
 
Posts: 502
Joined: Wed Dec 08, 2004 7:07 pm

Re: LAPACK-VS-Example linking problem

Postby alex3375 » Fri Sep 02, 2011 12:54 pm

admin wrote:Never had this kind of problem,but Google says: http://support.microsoft.com/kb/125750
Otherwise, just download CMAKE (cmake.org) and build your own libraries for your machine.
Julie


Thank you Julie.
Your suggestion to visit http://support.microsoft.com/kb/125750 was very helpful.
I also found a discussion of this problem at
http://social.msdn.microsoft.com/Forums ... 5b6c8c51c/

Sincerely,
Alex
alex3375
 
Posts: 2
Joined: Thu Sep 01, 2011 5:33 pm


Return to Linking Problem

Who is online

Users browsing this forum: No registered users and 0 guests