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

Problem with DISLIN+Intel Visual Fortran+Visual Studio 2010 on Windows 7 - 64 bit

katto01
Beginner
1,229 Views
Hello,
This is what I did:
1. Downloaded dl_10_ic
2. Open Intel Visual Fortran in Visual Studio 2010
3. Created a console empty project
4. Created a new f90 source as posted on DISLIN website example:
PROGRAM TEST
USE DISLIN
CALL DISINI ()
CALL MESSAG ('This is a test', 100, 100)
CALL DISFIN ()
END PROGRAM TEST
5. Added as an exisitng source dislin.f90
6. Build the project
7. Got the following error messages:
1>Source2.obj : error LNK2019: unresolved external symbol _DISINI referenced in function _MAIN__
1>Source2.obj : error LNK2019: unresolved external symbol _MESSAG referenced in function _MAIN__
1>Source2.obj : error LNK2019: unresolved external symbol _DISFIN referenced in function _MAIN__
1>Debug\\Console7_dislin.exe : fatal error LNK1120: 3 unresolved externals
It looks like the dislin.f90 is ignored.
I am new with Visual Studio and I might have had ommitted something.
Please advise
Thank you
Katto

0 Kudos
1 Reply
TimP
Honored Contributor III
1,229 Views
Did you build the dislin library (if you didn't find it pre-built) and add it to the library dependencies of your project?
0 Kudos
Reply