By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,525 Members | 1,634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,525 IT Pros & Developers. It's quick & easy.

Symbol Referencing Error in Fortran 90

P: n/a
while compiling on:

SunOS 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-280R

I get the following error:

Undefined first referenced
symbol in file
matrixi_ tst.o
ld: fatal: Symbol referencing errors. No output written to a.out

However, the compilation is successful when linking is suppressed. Can
anyone help me get rid of this error..

Compiling with the verbose option gives the following message:

### command line files and options (expanded):
### -v tst.f90
### f90: Note: LM_LICENSE_FILE = (null)
### f90: Note: NLSPATH =
/local/SUNWspro/bin/../WS6U2/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/local/SUNWspro/bin/../WS6U2/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
/local/SUNWspro/bin/../WS6U2/bin/f90comp -y-o -ytst.o -ev
-y-ftrap=common -m3 -dq -y-fbe -y/local/SUNWspro/bin/../WS6U2/bin/fbe
-y-xarch=generic -y-s -H "/local/SUNWspro/bin/../WS6U2/bin/f90 -v "
-y-xcache=generic -xcache=generic
-I/local/SUNWspro/WS6U2/include/f90/v8 -p/local/SUNWspro/WS6U2/lib
-y-verbose -xall tst.f90
### f90: Note: LD_LIBRARY_PATH = (null)
### f90: Note: LD_RUN_PATH = (null)
### f90: Note: LD_OPTIONS = (null)
/usr/ccs/bin/ld -t -R/local/SUNWspro/lib:/opt/SUNWspro/lib -o a.out
/local/SUNWspro/WS6U2/lib/crti.o /local/SUNWspro/WS6U2/lib/crt1.o
/local/SUNWspro/WS6U2/lib/values-xi.o -Y
P,/local/SUNWspro/lib:/local/SUNWspro/WS6U2/lib:/usr/ccs/lib:/usr/lib
tst.o -lfui -lfai -lfai2 -lfsumai -lfprodai -lfminlai -lfmaxlai
-lfminvai -lfmaxvai -lfsu -lsunmath -lm -lc
/local/SUNWspro/WS6U2/lib/crtn.o
Undefined first referenced
symbol in file
matrixi_ tst.o
ld: fatal: Symbol referencing errors. No output written to a.out
rm tst.o

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
This message was also posted and replied to on comp.lang.fortran -- I
think it's presence here is an accident.

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.