Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Link Not Searching Lib

$
0
0

My build looks like:

G:\Desktop\Pearson>build

G:\Desktop\Pearson>rem Build script for Pearson
G:\Desktop\Pearson>deftofd resource.h resource.fd
G:\Desktop\Pearson>rc Pearson.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17298
Copyright (C) Microsoft Corporation.  All rights reserved.

G:\Desktop\Pearson>call cf pearsonglobals
G:\Desktop\Pearson>iFort /nologo -Od /traceback /c pearsonglobals.f90
G:\Desktop\Pearson>lib /nologo MyLib.lib pearsonglobals.obj
Replacing pearsonglobals.obj

G:\Desktop\Pearson>ifort /nologo /WinApp Pearson.f90 MyLib.Lib Pearson.res
MyLib.Lib(purge.obj) : error LNK2019: unresolved external symbol RANFGET referenced in function PURGE
MyLib.Lib(purge.obj) : error LNK2019: unresolved external symbol RANFPUT referenced in function PURGE
Pearson.exe : fatal error LNK1120: 2 unresolved externals

I don't know why the link step does not pick up MyLib.lib which is local to all the source codes. Below, I've had lib list all of its entries. The ranf.obj has 3 routines in it and it is encompassed by a module I call Random. The invoking routine, Purge, has a use statement invoking random. What am I doing wrong?

Thanks,
Brooks V

 

G:\Desktop\Pearson>lib /list mylib.lib
Microsoft (R) Library Manager Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved.

pearsonglobals.obj
purge.obj
TypeVII.obj
TypeV.obj
TypeIII.obj
TypeI.obj
LnGamma.obj
GetK.obj
Howe.obj
Van.obj
dographs.obj
dohisto.obj
getrs.obj
Horn.obj
zData.obj
Integrate.obj
TypeII.obj
TypeIV.obj
TypeVI.obj
TypeVIII.obj
ranf.obj


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>