A linking problem using Qt creator and msvc2010 compiler

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

A linking problem using Qt creator and msvc2010 compiler

Postby zijianding » Wed Apr 03, 2013 7:33 am

Hi,all!
I have successfully applied CLAPACK using vs2010 which uses msvc2010 as its compiler. I have learned how to add libf2c, blas and clapack pre-built windows labraries with vs2010. Now I want to use the GUI of Qt, thus I have been trying the same thing using Qt creator 5.0.1.
Now I have successfully add the 4 libraries: libf2c, BLAS, BLAS_nowrap and clapack under RELEASE. I know I haven't excluded libcmt.lib since several linking message LINK2005 appeared.
I have to say I tried several ways to excluded in Qt but none of them works. I would be very happy if anyone can help me.
Code: Select all
LIBCMT.lib(crt0.obj):-1: error:LNK2005: _mainCRTStartup has been defined in MSVCRT.lib(crtexe.obj)

Code: Select all
:warning:LNK4098: default library “LIBCMT” is in conflict with other libraries;please use /NODEFAULTLIB:library

Code: Select all
:warning:LNK4098: default library “MSVCRT” is in conflict with other libraries;please use /NODEFAULTLIB:library


Thank you very much !
zijianding
 
Posts: 1
Joined: Wed Apr 03, 2013 7:18 am

Re: A linking problem using Qt creator and msvc2010 compiler

Postby admin » Wed Apr 03, 2013 1:24 pm

Just add : /NODEFAULTLIB: LIBCMT in the linker option
Hope it helps
admin
Site Admin
 
Posts: 609
Joined: Wed Dec 08, 2004 7:07 pm


Return to Linking Problem

Who is online

Users browsing this forum: No registered users and 1 guest

cron