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

error LNK2019: unresolved external symbol_setviewport/setcolor

candyhe
初学者
996 次查看
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 项奖励
4 回复数
IanH
名誉分销商 III
996 次查看
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 项奖励
Paul_Curtis
重要分销商 I
996 次查看
DFLIB became IFLIB, has nothing to do with "Quickwin". Your missing externals are Win32 API defines. Try USEing IFWIN and IFWINTY.
0 项奖励
candyhe
初学者
996 次查看
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 项奖励
candyhe
初学者
996 次查看
Yes! I changed the relase configuration as suggested, and no error appears! Thank you very much!
0 项奖励
回复