- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When compiling without any type of graphics like -libs:qwin turned on our program runs fine. As soon as we turn on the option -libs:qwin we get this error:
LIBCMT.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
[bash]ifort -nologo $(FFLAGS) $(FPSTOP) $(FL) -libs:qwin \ relap\relap5.o lib\relap$(NM).lib \ lib\scdap$(NM).lib lib\contmn$(NM).lib lib\matpro$(NM).lib \ lib\envrl$(NM).lib lib\graphics.lib \ graphics\opengl32.lib graphics\glu32.lib graphics\f90gl.lib \ graphics\f90glu.lib graphics\f90glut.lib graphics\glut32.lib \ -exe:bin\relap5.exe[/bash]THis is the command our make file is using.
I am also getting this error:
relap5.o : error LNK2019: unresolved external symbol __QWINSetExit referenced in function _MAIN__
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As I mentioned in the other note, you disabled default libraries so the QuickWin support library was not linked in. You have to compile all the Fortran sources with -libs:qwin, not just put it on the link.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As I mentioned in the other note, you disabled default libraries so the QuickWin support library was not linked in. You have to compile all the Fortran sources with -libs:qwin, not just put it on the link.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page