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

location of library files

Brian_Allison
Beginner
2,037 Views
I was wondering if there is a compiler option to tell the compiler where to look for the library files.
Here is what I have in my makefile.
$(f90) -nologo $(FFLAGS) $(FPSTOP) $(FL) \\
-thread -dbglibs relap\\relap5.$O -libs:qwin \\
relap\\relap$(NM).lib scdap\\scdap$(NM).lib \\
matpro\\matpro$(NM).lib relap5l.lib \\
envrl\\envrl$(NM).lib graphics\\graphics.lib -libs:qwin\\
libifcoremt.lib libifport.lib \\
libmmt.lib kernel32.lib ifqwin.lib gdi32.lib \\
user32.lib libirc.lib comdlg32.lib ifqw_mdi.lib \\
libcmt.lib imagehlp.lib opengl32.lib graphics\\glaux.lib \\
graphics\\glu32.lib \\
graphics\\libi\\f90gl.lib graphics\\libi\\f90glu.lib \\
graphics\\libi\\f90glut.lib graphics\\libi\\glut32.lib \\
-exe:bin\\relap5$(NM).exe -link \\
-heap:1000000000 -stack:14000000 -incremental:no -nodefaultlib
Instead of listing each library file. I have put them all into one folder. Can I just tell it to look to the special folder?
0 Kudos
24 Replies
Steven_L_Intel1
Employee
1,716 Views
You can use -libdir to add a folder to the library search path. You still have to give the names of the libraries, though I am not sure why you are naming many of these as the compiler adds default library directives for most of them. I'd think you'd need to name the OpenGL/glut libraries only and maybe imagehlp.lib.
0 Kudos
Brian_Allison
Beginner
1,716 Views
If I remove the listed libs and leave the ones you said, I get a ton of unresolved external symbol errors.
0 Kudos
Lorri_M_Intel
Employee
1,716 Views
That's because of the -nodefaultlib switch after the /link commandline switch.
0 Kudos
Brian_Allison
Beginner
1,716 Views
So this is what I have now:
$(f90) -nologo $(FFLAGS) $(FPSTOP) $(FL) \
-thread -dbglibs relap\relap5.$O -libs:qwin \
relap\relap$(NM).lib scdap\scdap$(NM).lib \
matpro\matpro$(NM).lib bin\relap5l.lib \
envrl\envrl$(NM).lib graphics\graphics.lib -libs:qwin\
libia32\opengl32.lib libia32\glaux.lib \
libia32\glu32.lib libia32\f90gl.lib libia32\f90glu.lib \
libia32\f90glut.lib libia32\glut32.lib -exe:bin\relap5$(NM).exe -link \
I now am getting 24 unresolved external symbols and I was getting 95.
0 Kudos
Steven_L_Intel1
Employee
1,716 Views
What are the 24?
0 Kudos
Brian_Allison
Beginner
1,716 Views
relap5.o : error LNK2019: unresolved external symbol __QWINSetExit referenced in function _MAIN__
relapo.lib(dtstep.o) : error LNK2001: unresolved external symbol __QWINSetExit
relapo.lib(plotmd2.o) : error LNK2001: unresolved external symbol __QWINSetExit
relapo.lib(plotmd2.o) : error LNK2019: unresolved external symbol __f_getwindowconfig referenced in function _SCIGRAPHDEMO_mp_PLOTMD2
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __f_getwindowconfig
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __rectangle_w referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sgdraw.obj) : error LNK2001: unresolved external symbol __rectangle_w
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __setcolor referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sgdraw.obj) : error LNK2001: unresolved external symbol __setcolor
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __setcolor
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __ellipse_w referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __ellipse_w
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __initializefonts referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __setgtextvector referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __setgtextvector
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __setfillmask referenced in function _SGDRAW_mp_SCISETFILLTYPE
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __setfillmask
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __f_moveto_w referenced in function _SGDRAW_mp_SCIDRAWLEGEND
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __f_moveto_w
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __f_outgtext referenced in function _SGDRAW_mp_SCIDRAWLEGEND
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __f_outgtext
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __polygon_w referenced in function _SGDRAW_mp_SCIDRAWMARKER.
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __lineto_w referenced in function _SGDRAW_mp_SCIDRAWMARKER.
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __lineto_w
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_setwindowconfig referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __setviewport referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __setlinestyle referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __rectangle referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __setwindow referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_setfont referenced in function _SGLOWLVL_mp_SCISETFONT
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_getfontinfo referenced in function _SGLOWLVL_mp_SCIGETTEXTHEIGHT
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_getgtextextent referenced in function _SGLOWLVL_mp_SCIGETTEXTLENGTH
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __grstatus referenced in function _SGLOWLVL_mp_SCIROTCENTER
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_getcurrentposition referenced in function _SGLOWLVL_mp_SCIROTCENTER
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_moveto referenced in function _SGLOWLVL_mp_SCIROTCENTER
LIBCMT.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
bin\relap5o.exe : fatal error LNK1120: 24 unresolved externals
0 Kudos
Steven_L_Intel1
Employee
1,716 Views
Those are all (I think) QuickWin routines. I would have expected -libs:qwin to cause thoise to be picked up. I don't know how well QuickWin and OpenGL will play together, though. Try adding ifqwin.lib to the list and see what happens.
0 Kudos
Brian_Allison
Beginner
1,716 Views
I already try adding ifqwin.lib. It made no difference. DO you think it matters that there is no space between the libs option and the last backlash.
-libs:qwin\
should it be-libs:qwin \
0 Kudos
Steven_L_Intel1
Employee
1,716 Views
I don't know - I don't use makefiles.

Please add to the end of the line:

-link -verbose:libs

and attach the resulting link output to a post here.
0 Kudos
TimP
Honored Contributor III
1,716 Views
seems likely, given there is no space at the beginning of the next line.
0 Kudos
Brian_Allison
Beginner
1,716 Views
ok, I added a space and re-compiled. Still getting the 24 unresolved external symbols.
0 Kudos
Steven_L_Intel1
Employee
1,716 Views
Please provide the "verbose" link output I requested earlier.
0 Kudos
mecej4
Honored Contributor III
1,716 Views
Yes, it should matter, as Tim18 has said, because make removes those backslashes that signify line continuation before issuing the commands requested in the makefile. The result of this line unfolding will be to issue a link command with ...-libs:qwinlibia32\opengl32.lib instead of the desired -libs:qwin libia32\opengl32.lib. Since there is probably no directory named qwinlibia32, the link runs into problems.
0 Kudos
Brian_Allison
Beginner
1,716 Views
So I added the -verbose:libs and the code compiled. I also removed -libs:qwin, becasue it was in there twice. If I take the -verbose:libs out, the compilation fails with the 24 unresolved external symbols.
0 Kudos
Steven_L_Intel1
Employee
1,716 Views
Now that's bizarre. Please attach the -verbose:libs output anyway.
0 Kudos
Brian_Allison
Beginner
1,716 Views
Not sure what I did before, but now it does not work. I have attached the look file.
[bash]Microsoft  Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

	if not exist o mkdir o
	dir envrl*.hh /b /l /o >envrlfiledoth
	dir envrl*.ff /b /l /o >envrlfiledotf
	dir matpro*.hh /b /l /o >matprofiledoth
	dir matpro*.ff /b /l /o >matprofiledotf
	dir relap*.hh /b /l /o >relapfiledoth
	dir relap*.ff /b /l /o >relapfiledotf
	dir scdap*.hh /b /l /o >scdapfiledoth
	dir scdap*.ff /b /l /o >scdapfiledotf
	auxxbuilderm makerip
	cd graphics
	nmake -nologo -f graphicsi.mak NM=o FFLAGS=  FPSTOP= O=o
'graphics.lib' is up-to-date
	cd ..
	nmake -nologo -f makrelap def=definei NM=o FFLAGS=  FPSTOP= O=o cpl= exedll=exe
	envrlstgh2oo.exe envrlstgh2oo.pr
	copy tpfh2o tpfh2oo
        1 file(s) copied.
	move tpfh2o bintpfh2o
        1 file(s) moved.
	move tpfh2oo bintpfh2oo
        1 file(s) moved.
	envrlstgd2oo.exe envrlstgd2oo.pr
	copy tpfd2o tpfd2oo
        1 file(s) copied.
	move tpfd2o bintpfd2o
        1 file(s) moved.
	move tpfd2oo bintpfd2oo
        1 file(s) moved.
	copy auxxdefinei+relaprelap5l.ff f1
auxxdefinei
relaprelap5l.ff
        1 file(s) copied.
	auxxselect f2
	auxxcnv32 relaprelap5l.for
	ifort -nologo   -auto -Qansi_alias- -pad_source -traceback  -fltconsistency -fpconstant -nogen-interfaces -dll -Id  relaprelap5l.for relapufilef.o envrlfabend.o  -object:relaprelap5l.obj -link  -implib:binrelap5l.lib -out:binrelap5l.dll
ifort: command line warning #10161: unrecognized source type 'relapufilef.o'; object file assumed
ifort: command line warning #10161: unrecognized source type 'envrlfabend.o'; object file assumed
   Creating library binrelap5l.lib and object binrelap5l.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
	mt -manifest binrelap5l.dll.manifest  -outputresource:binrelap5l.dll;2
Microsoft  Manifest Tool version 5.2.3790.2075

Copyright (c) Microsoft Corporation 2005. 

All rights reserved.

	copy libia32libifcoremd.dll bin
        1 file(s) copied.
	copy libia32libmmd.dll bin
        1 file(s) copied.
	ifort -nologo   -auto -Qansi_alias- -pad_source -traceback  -fltconsistency -fpconstant -nogen-interfaces  -thread -dbglibs -libs:qwin relaprelap5.o  relaprelapo.lib scdapscdapo.lib  matpromatproo.lib binrelap5l.lib  envrlenvrlo.lib graphicsgraphics.lib libia32opengl32.lib  libia32glaux.lib libia32glu32.lib libia32f90gl.lib  libia32imagehlp.lib  libia32f90glu.lib libia32f90glut.lib libia32glut32.lib  -exe:binrelap5o.exe -link -verbose:lib  -heap:1000000000 -stack:14000000 -incremental:no
ifort: command line warning #10161: unrecognized source type 'relaprelap5.o'; object file assumed

Searching libraries
    Searching relaprelapo.lib:
    Searching scdapscdapo.lib:
    Searching matpromatproo.lib:
    Searching binrelap5l.lib:
    Searching envrlenvrlo.lib:
    Searching graphicsgraphics.lib:
    Searching libia32opengl32.lib:
    Searching libia32glaux.lib:
    Searching libia32glu32.lib:
    Searching libia32f90gl.lib:
    Searching libia32imagehlp.lib:
    Searching libia32f90glu.lib:
    Searching libia32f90glut.lib:
    Searching libia32glut32.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32ifconsol.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libifcoremt.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libifport.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libmmt.lib:
    Searching C:Program FilesMicrosoft Visual Studio 9.0VCLIBLIBCMT.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libirc.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32svml_dispmt.lib:
    Searching C:Program FilesMicrosoft Visual Studio 9.0VCLIBOLDNAMES.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32IFWIN.LIB:
    Searching C:Program Files\Microsoft SDKsWindowsv6.0Alibadvapi32.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libifcore.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libm.lib:
    Searching C:Program FilesMicrosoft Visual StudioVC98LIBLIBC.lib:
    Searching C:Program Files\Microsoft SDKsWindowsv6.0Alibuuid.lib:
    Searching C:Program Files\Microsoft SDKsWindowsv6.0Alibwinmm.lib:
    Searching C:Program Files\Microsoft SDKsWindowsv6.0Alibkernel32.lib:
    Searching relaprelapo.lib:
    Searching scdapscdapo.lib:
    Searching matpromatproo.lib:
    Searching binrelap5l.lib:
    Searching envrlenvrlo.lib:
    Searching graphicsgraphics.lib:
    Searching libia32opengl32.lib:
    Searching libia32glaux.lib:
    Searching libia32glu32.lib:
    Searching libia32f90gl.lib:
    Searching libia32imagehlp.lib:
    Searching libia32f90glu.lib:
    Searching libia32f90glut.lib:
    Searching libia32glut32.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32ifconsol.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libifcoremt.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libifport.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libmmt.lib:
    Searching C:Program FilesMicrosoft Visual Studio 9.0VCLIBLIBCMT.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libirc.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32svml_dispmt.lib:
    Searching C:Program FilesMicrosoft Visual Studio 9.0VCLIBOLDNAMES.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32IFWIN.LIB:
    Searching C:Program Files\Microsoft SDKsWindowsv6.0Alibadvapi32.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libifcore.lib:
    Searching C:Program FilesIntelCompiler11.1�67Libia32libm.lib:
    Searching C:Program FilesMicrosoft Visual StudioVC98LIBLIBC.lib:
    Searching C:Program Files\Microsoft SDKsWindowsv6.0Alibuuid.lib:
    Searching C:Program Files\Microsoft SDKsWindowsv6.0Alibwinmm.lib:
    Searching C:Program Files\Microsoft SDKsWindowsv6.0Alibkernel32.lib:
    Searching relaprelapo.lib:
    Searching scdapscdapo.lib:
    Searching matpromatproo.lib:
    Searching binrelap5l.lib:
    Searching envrlenvrlo.lib:
    Searching graphicsgraphics.lib:
    Searching libia32opengl32.lib:
    Searching libia32glaux.lib:
    Searching libia32glu32.lib:
    Searching libia32f90gl.lib:

Finished searching libraries
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
relap5.o : error LNK2019: unresolved external symbol __QWINSetExit referenced in function _MAIN__
relapo.lib(dtstep.o) : error LNK2001: unresolved external symbol __QWINSetExit
relapo.lib(plotmd2.o) : error LNK2001: unresolved external symbol __QWINSetExit
relapo.lib(plotmd2.o) : error LNK2019: unresolved external symbol __f_getwindowconfig referenced in function _SCIGRAPHDEMO_mp_PLOTMD2
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __f_getwindowconfig
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __rectangle_w referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sgdraw.obj) : error LNK2001: unresolved external symbol __rectangle_w
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __setcolor referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sgdraw.obj) : error LNK2001: unresolved external symbol __setcolor
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __setcolor
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __ellipse_w referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __ellipse_w
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __initializefonts referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sgplot.obj) : error LNK2019: unresolved external symbol __setgtextvector referenced in function _SGPLOT_mp_PLOTGRAPH
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __setgtextvector
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __setfillmask referenced in function _SGDRAW_mp_SCISETFILLTYPE
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __setfillmask
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __f_moveto_w referenced in function _SGDRAW_mp_SCIDRAWLEGEND
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __f_moveto_w
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __f_outgtext referenced in function _SGDRAW_mp_SCIDRAWLEGEND
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __f_outgtext
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __polygon_w referenced in function _SGDRAW_mp_SCIDRAWMARKER.
graphics.lib(sgdraw.obj) : error LNK2019: unresolved external symbol __lineto_w referenced in function _SGDRAW_mp_SCIDRAWMARKER.
graphics.lib(sglowlvl.obj) : error LNK2001: unresolved external symbol __lineto_w
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_setwindowconfig referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __setviewport referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __setlinestyle referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __rectangle referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __setwindow referenced in function _SGLOWLVL_mp_SCIGRAPHICSMODE
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_setfont referenced in function _SGLOWLVL_mp_SCISETFONT
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_getfontinfo referenced in function _SGLOWLVL_mp_SCIGETTEXTHEIGHT
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_getgtextextent referenced in function _SGLOWLVL_mp_SCIGETTEXTLENGTH
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __grstatus referenced in function _SGLOWLVL_mp_SCIROTCENTER
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_getcurrentposition referenced in function _SGLOWLVL_mp_SCIROTCENTER
graphics.lib(sglowlvl.obj) : error LNK2019: unresolved external symbol __f_moveto referenced in function _SGLOWLVL_mp_SCIROTCENTER
LIBCMT.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
binrelap5o.exe : fatal error LNK1120: 24 unresolved externals[/bash]
0 Kudos
Steven_L_Intel1
Employee
1,716 Views
You need to compile the Fortran sources with -libs:qwin, not just link. I also see you have LIBC in there, from a source compiled against MSVC 2003. That may cause you problems as well.
0 Kudos
Brian_Allison
Beginner
1,716 Views
[bash]
Ok, so this is where I am at now.  I am gettig one unresolved.[/bash]
[bash]
[/bash]
[bash]
Microsoft  Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

	if not exist o mkdir o
	dir envrl*.hh /b /l /o >envrlfiledoth
	dir envrl*.ff /b /l /o >envrlfiledotf
	dir matpro*.hh /b /l /o >matprofiledoth
	dir matpro*.ff /b /l /o >matprofiledotf
	dir relap*.hh /b /l /o >relapfiledoth
	dir relap*.ff /b /l /o >relapfiledotf
	dir scdap*.hh /b /l /o >scdapfiledoth
	dir scdap*.ff /b /l /o >scdapfiledotf
	auxxbuilderm makerip
	cd graphics
	nmake -nologo -f graphicsi.mak NM=o FFLAGS=  FPSTOP= O=o
'..libia32graphics.lib' is up-to-date
	cd ..
	nmake -nologo -f makrelap def=definei NM=o FFLAGS=  FPSTOP= O=o cpl= exedll=exe
	envrlstgh2oo.exe envrlstgh2oo.pr
	copy tpfh2o tpfh2oo
        1 file(s) copied.
	move tpfh2o bintpfh2o
        1 file(s) moved.
	move tpfh2oo bintpfh2oo
        1 file(s) moved.
	envrlstgd2oo.exe envrlstgd2oo.pr
	copy tpfd2o tpfd2oo
        1 file(s) copied.
	move tpfd2o bintpfd2o
        1 file(s) moved.
	move tpfd2oo bintpfd2oo
        1 file(s) moved.
	copy auxxdefinei+relaprelap5l.ff f1
auxxdefinei
relaprelap5l.ff
        1 file(s) copied.
	auxxselect f2
	auxxcnv32 relaprelap5l.for
	ifort -nologo   -auto -Qansi_alias- -pad_source -traceback  -fltconsistency -fpconstant -nogen-interfaces -dll -Id -libs:static  -threads relaprelap5l.for -object:relaprelap5l.obj -link  -implib:libia32relap5l.lib -out:binrelap5l.dll
   Creating library libia32relap5l.lib and object libia32relap5l.exp
	ifort -nologo   -auto -Qansi_alias- -pad_source -traceback  -fltconsistency -fpconstant -nogen-interfaces -dbglibs  libia32relapo.lib libia32scdapo.lib libia32matproo.lib  libia32relap5l.lib libia32envrlo.lib libia32graphics.lib  libia32opengl32.lib libia32glaux.lib  libia32glu32.lib libia32f90gl.lib libia32f90glu.lib  libia32f90glut.lib libia32glut32.lib -exe:binrelap5.exe -libs:qwin  -link -heap:1000000000 -stack:14000000 -incremental:no  -verbose:lib
LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86

Searching libraries
    Searching libia32relapo.lib:
    Searching libia32scdapo.lib:
    Searching libia32matproo.lib:
    Searching libia32relap5l.lib:
    Searching libia32envrlo.lib:
    Searching libia32graphics.lib:
    Searching libia32opengl32.lib:
    Searching libia32glaux.lib:
    Searching libia32glu32.lib:
    Searching libia32f90gl.lib:
    Searching libia32f90glu.lib:
    Searching libia32f90glut.lib:
    Searching libia32glut32.lib:

Finished searching libraries
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
binrelap5.exe : fatal error LNK1120: 1 unresolved externals[/bash]

0 Kudos
Brian_Allison
Beginner
1,716 Views
Still need an update!
0 Kudos
Steven_L_Intel1
Employee
1,618 Views
Can you show me the output of a "dumpbin -directives xxx.obj" where xxx.obj is one of your Fortran sources? I don't see the Fortran libraries being referenced. You did recompile all the Fortran sources after removing -nolibdir, right?
0 Kudos
Reply