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

error LNK2019: unresolved external symbol_setviewport/setcolor

candyhe
Beginner
961 Views
I am running some codes which were developed in Compaq Fortran, now in Intel Visual Compiler 11.1. In the original code, it use DFLIB, so I change it to IFQWIN accordingly. But I got lots of errors complainning unresolved external symbol_wetviewport, setcolor, rectangle, floodfill, ect. I would guess those functions should be included in IFQWIN already, but why I still got the error messages? And the funny thing is, under the debug mode, the program complied normally, and the error messages only occurred under the relased mode. Anybody can help? Much appreciated...
0 Kudos
4 Replies
IanH
Honored Contributor III
961 Views
Maybe you forgot to change the runtime library option in the release configuration?

(right click on the project name, select "Properties", then on the left "Configuration properties" > "Fortran" > "Libraries", then on the right change "Runtime Library" to "QuickWin".)
0 Kudos
Paul_Curtis
Valued Contributor I
961 Views
DFLIB became IFLIB, has nothing to do with "Quickwin". Your missing externals are Win32 API defines. Try USEing IFWIN and IFWINTY.
0 Kudos
candyhe
Beginner
961 Views
http://software.intel.com/en-us/articles/migrating-from-compaq-visual-fortran/

In DFLIB, symbols have been relocated into one of three new modules: IFCORE, IFPORT and IFQWIN. I think I am using the right one.
0 Kudos
candyhe
Beginner
961 Views
Yes! I changed the relase configuration as suggested, and no error appears! Thank you very much!
0 Kudos
Reply