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

error LNK2019:

zdweik
Beginner
909 Views
I am building an executable and I keep getting this message when trying to link
ifconsol.lib(for_m_console.obj) : error LNK2019: unresolved external symbol _for__issue_diagnostic referenced in function __QWINGethWnd
zozo.exe : fatal error LNK1120: 1 unresolved externals

inside the code I am trying to make this call for a message box...I compile using intel 9.1 (32 bit) and it pass nicely but when I try to link I get the message showb above

Imessage = messageboxqq('problem'C,'ERROR DETECTED'C, MB$OK)
anybody have an idea what need to be done ?
IF I can not call this message box to appear ...what else I could do to tell the user that there is a problem in the execution


Thanks
Zain


0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
909 Views
Quoting - zdweik
I am building an executable and I keep getting this message when trying to link
ifconsol.lib(for_m_console.obj) : error LNK2019: unresolved external symbol _for__issue_diagnostic referenced in function __QWINGethWnd
zozo.exe : fatal error LNK1120: 1 unresolved externals

inside the code I am trying to make this call for a message box...I compile using intel 9.1 (32 bit) and it pass nicely but when I try to link I get the message showb above

Imessage = messageboxqq('problem'C,'ERROR DETECTED'C, MB$OK)
anybody have an idea what need to be done ?
IF I can not call this message box to appear ...what else I could do to tell the user that there is a problem in the execution


Is this a QuickWin application? It appears no, so you cannot call MessageBoxQQ.

In any case, it's better to call plain vanilla MessageBox API (use IFWIN; you may supply 0 for the hWnd argument). Or, if it's a console application, just write an error thext to the console.
0 Kudos
anthonyrichards
New Contributor III
909 Views
USE IFWIN
INTEGER RET

RET= MESSAGEBOX(0,"YOUR MESSAGE HERE"C,"MESSAGEBOX TITLE HERE"C,MB_OK)

0 Kudos
Reply