Page 1 of 1

LAPACK-VS-Example linking problem

PostPosted: Thu Sep 01, 2011 5:44 pm
by alex3375
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

Re: LAPACK-VS-Example linking problem

PostPosted: Thu Sep 01, 2011 5:48 pm
by admin
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

Re: LAPACK-VS-Example linking problem

PostPosted: Fri Sep 02, 2011 12:54 pm
by alex3375
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