Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29236 Discussions

ivf11+imsl5.0 is better than ivf11+imsl6.0

sinozhan
Beginner
706 Views
when I use imsl5.0 ,Ionly need to adda sentence " include 'link_f90_static.h' " , no error and no warning.
when I use imsl6.0 ,Ineed to adda sentence "INCLUDE 'link_fnl_static.h'" and"!DEC$ OBJCOMMENT LIB:'libiomp5md.lib' " , no error and a warning , how to clean the warning? please help me.thank you .
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
ivf11+imsl5.0 is better than ivf11+imsl6.0 , do you think so?


! **************************source code,filename: acbcb.f90

include 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'
USE NUMERICAL_LIBRARIES

INTEGER LDA, LDB, LDC, N, NLCA, NLCB, NLCC, NUCA, NUCB, NUCC
PARAMETER (LDA=3, LDB=3, LDC=5, N=3, NLCA=0, NLCB=2, NLCC=2,&
NUCA=2, NUCB=0, NUCC=2)
!
INTEGER NBC
COMPLEX A(LDA,N), B(LDB,N), C(LDC,N)
! EXTERNAL ACBCB, WRCRN
! Set values for A (in band mode)
! A = ( 0.0 + 0.0i 0.0 + 0.0i 3.0 - 2.0i )
! ( 0.0 + 0.0i -1.0+ 3.0i 6.0 + 0.0i )
! ( 1.0 + 4.0i 5.0 - 2.0i 3.0 + 1.0i )
!
! Set values for B (in band mode)
! B = ( 3.0 + 1.0i 4.0 + 1.0i 7.0 - 1.0i )

! ( -1.0- 4.0i 9.0 + 3.0i 0.0 + 0.0i )
! ( 2.0 - 1.0i 0.0 + 0.0i 0.0 + 0.0i )
!
DATA A/(0.0,0.0), (0.0,0.0), (1.0,4.0), (0.0,0.0), (-1.0,3.0), &
(5.0,-2.0), (3.0,-2.0), (6.0,0.0), (3.0,1.0)/
DATA B/(3.0,1.0), (-1.0,-4.0), (2.0,-1.0), (4.0,1.0), (9.0,3.0), &
(0.0,0.0), (7.0,-1.0), (0.0,0.0), (0.0,0.0)/
! Compute C = A+B
CALL ACBCB (N, A, LDA, NLCA, NUCA, B, LDB, NLCB, NUCB, C, LDC,&
NLCC, NUCC)
! Print results
NBC = NLCC + NUCC + 1
CALL WRCRN ('C = A+B', NBC, N, C, LDC, 0)
pause
END



0 Kudos
3 Replies
Steven_L_Intel1
Employee
706 Views
I don't get any warning when building this source. Please show me your ifort command line. If you are building from Visual Studio, go to the property page Fortran > Command Line and copy the list of options shown there and paste into a reply.

0 Kudos
sinozhan
Beginner
706 Views
I don't get any warning when building this source. Please show me your ifort command line. If you are building from Visual Studio, go to the property page Fortran > Command Line and copy the list of options shown there and paste into a reply.



thank you for your answer. fortran>command line is:
/nologo /debug:full /Od /Qsave /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /c
0 Kudos
Steven_L_Intel1
Employee
706 Views
Ok. Now please show me the same field from the Linker property page.
0 Kudos
Reply