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

unresolved external symbol __QWINNiceExit with f90gl

pecan204
Beginner
844 Views
Can anyone tell me what switch might control this link error? The program is an f90gl off of the nist site.
Here is the output;
Thanks
Compiling Fortran...
c:F90GLPLOTFUNCplotfunc.f90
Linking...
dfor.lib(for_stop.obj) : error LNK2001: unresolved external symbol __QWINNiceExit
dfor.lib(for_diags.obj) : error LNK2001: unresolved external symbol __QWINNiceExit
dfor.lib(for_exit.obj) : error LNK2001: unresolved external symbol __QWINNiceExit
dfor.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __QWINNiceExit
dfor.lib(for_close_proc.obj) : error LNK2001: unresolved external symbol __qw32used
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __qw32used
dfor.lib(for_exit.obj) : error LNK2001: unresolved external symbol __qw32used
dfor.lib(for_need_lf.obj) : error LNK2001: unresolved external symbol __qw32used
dfor.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __qw32used
dfor.lib(for_stop.obj) : error LNK2001: unresolved external symbol __qw32used
dfor.lib(for_put.obj) : error LNK2001: unresolved external symbol __qw32used
dfor.lib(for_diags.obj) : error LNK2001: unresolved external symbol __qw32used
dfor.lib(for_get.obj) : error LNK2001: unresolved external symbol __qw32used
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol _ChangeQWINCP
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol _RegisterGetUnitQQ
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol _RegisterGetHandleQQ
dfor.lib(for_put.obj) : error LNK2001: unresolved external symbol __QWINWrite
dfor.lib(for_get.obj) : error LNK2001: unresolved external symbol __QWINWrite
dfor.lib(for_put.obj) : error LNK2001: unresolved external symbol __QWINSetFocus
dfor.lib(for_get.obj) : error LNK2001: unresolved external symbol __QWINSetFocus
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __QWINSetFocus
dfor.lib(for_put.obj) : error LNK2001: unresolved external symbol __wgsetactive
dfor.lib(for_get.obj) : error LNK2001: unresolved external symbol __wgsetactive
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __wgsetactive
dfor.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __wgsetactive
dfor.lib(for_close_proc.obj) : error LNK2001: unresolved external symbol __QWINGetDefaultWindow
dfor.lib(for_put.obj) : error LNK2001: unresolved external symbol __QWINGetDefaultWindow
dfor.lib(for_diags.obj) : error LNK2001: unresolved external symbol __QWINGetDefaultWindow
dfor.lib(for_get.obj) : error LNK2001: unresolved external symbol __QWINGetDefaultWindow
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __QWINGetDefaultWindow
dfor.lib(for_diags.obj) : error LNK2001: unresolved external symbol __QWINMsgBox
dfor.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __QWINMsgBox
dfor.lib(for_get.obj) : error LNK2001: unresolved external symbol __QWINRead
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __QWINGetFocus
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __QWINGethWnd
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __QWINTGethFrame
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __QWINSetSize
dfor.lib(for_m_ qwin.obj) : error LNK2001: unresolved external symbol __QWINGetSize
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __clearscreen
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __displaycursor
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __f_outtext@8
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __scrolltextwindow
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __f_gettextposition@4
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __f_settextposition@12
dfor.lib(for_m_qwin.obj) : error LNK2001: unresolved external symbol __wggetactive
dfor.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __QWINSetIOFOCUS
dfor.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __wgopen
dfor.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __QWINGetFileName
dfor.lib(for_close_proc.obj) : error LNK2001: unresolved external symbol __QWINClose
libc.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/plotfunc_kb.exe : fatal error LNK1120: 28 unresolved externals
Error executing link.exe.
0 Kudos
8 Replies
Lorri_M_Intel
Employee
844 Views
Make sure you are linking against either dfconsol.lib or dfqwin.lib. Those entry points are defined in both libraries (in one library, they are simply stubs)
- Lorri
0 Kudos
pecan204
Beginner
844 Views
Lorri,
Is there a check box that references dfqwin? I am workingwith a standard windows graphic project.
I hand typed in dfqwin.lib in the link/modules area but I get many more link errors. Such as below.
I also tried dfconsol.lib but that produced alot of link errors also. I think that should be for a consol app?
There is a kernel32.lib also in that link input.
Thanks
Ken
Linking...
dfqwin.lib(qwkentry.obj) : error LNK2001: unresolved external symbol __imp__DispatchMessageA@4
dfqwin.lib(qwkexit.obj) : error LNK2001: unresolved external symbol __imp__DispatchMessageA@4
dfqwin.lib(qwkyield.obj) : error LNK2001: unresolved external symbol __imp__DispatchMessageA@4
dfqwin.lib(qwgprint.obj) : error LNK2001: unresolved external symbol __imp__DispatchMessageA@4
d
....
0 Kudos
Lorri_M_Intel
Employee
844 Views
Ah, OK. That's more information. For some reason, I assumed you were using the command line.
When you created the standard graphic project, did you do anything funky? It all should "just work".
Let me suggest this; recreate your project (because it's nearly impossible to modify an existing project to make sure its completely correct; trust me on that one!) and re-add your files. If it still fails, post your .dsp file here, and I'll see if there's anything glaring.
- Lorri
0 Kudos
pecan204
Beginner
844 Views
Lorri,
That did not do it but there is now a different link error with the opengl.
C:oehm work devplottingf90glplotfuncsourceplotfunc.f90
Linking...
plotfunc.obj : error LNK2001: unresolved external symbol _OPENGL_GLUT_mp_F9XGLUTPOSTREDISPLAY@0
plotfunc.obj : error LNK2001: unresolved external symbol _OPENGL_FWRAP_mp_F9XGLMATRIXMODE@4
p
Attached are the files.
Thanks for the help.
Ken
0 Kudos
Steven_L_Intel1
Employee
844 Views
You need to make sure that you have included the various f90GL and GLUT libraries in your project or on the references spot on the Linker input property page.
0 Kudos
pecan204
Beginner
844 Views
I added the .lib path as such;
kernel32.lib "C:Program FilesMicrosoft Visual StudioDF98LIBf90gl.lib" "C:Program FilesMicrosoft Visual StudioDF98LIBf90glu.lib" "C:Program FilesMicrosoft Visual StudioDF98LIBf90glut.lib"
I get a different error now.
Linking...
libc.lib(crt0dat.obj) : error LNK2005: __cinit already defined in libcmt.lib(crt0dat.obj)
libc.lib(crt0dat.obj) : error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj)
libc.lib(crt0dat.obj) : error LNK2005: __exit already defined in libcmt.lib(crt0dat.obj)
plus many more.
I had initially had the lib files in the link input but noticed the CVF examples did not have them. Why is that?
Thanks
Ken
0 Kudos
Steven_L_Intel1
Employee
844 Views
Now you have Multiple C Library Syndrome.
0 Kudos
pecan204
Beginner
844 Views
I checked off disable default library search to get the /libdir:noauto according to the posts I saw. When I do that I get the first post link error again.
dfor.lib(for_stop.obj) error LNK2001 .....
51 of them.
What else have I missed in the settings?
Thanks
0 Kudos
Reply