Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link phase not finding files from library or directory

Status
Not open for further replies.

BrooksVH

Programmer
Jul 8, 2009
14
US
The link step with f95 is:

D:\Booster>g95 -o bdp.exe bdp.o -I d:\booster -L d:\boosterMyLib D:\MinGW\Disl
in\dismg.a -luser32 -lgdi32
bdp.o:bdp.f95:(.text+0x29): undefined reference to `setearthdata_'
bdp.o:bdp.f95:(.text+0x2e): undefined reference to `setboostdata_'
bdp.o:bdp.f95:(.text+0x33): undefined reference to `settrajdata_'
bdp.o:bdp.f95:(.text+0x11a5): undefined reference to `deftra_'
bdp.o:bdp.f95:(.text+0x126a): undefined reference to `boostr_'

It just so happens that these routines are the only ones called from bdp and all are in MyLib.a and all the .o files are in the same directory. Any suggestions?

Thanks, BrooksVH
 
I solved the problem myself. sorry for the thread. The problem was I shouldn't have included the -i and -l keys.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top