libgfortran should be installed to /usr/lib. Also, I thought libgfortran was kinda like libc, only for g77/gfortran instead of gcc. Namely, you shouldn't be trying to link libgfortran with gcc/g++, right?
What kind of C++ source is using libgfortran? On Mon, Nov 15, 2010 at 3:43 AM, naveen shankar <[email protected]>wrote: > Hi, > here is what I'm using. > > g++ motionseg.cpp NMath.o CMatching.o COpticFlow.o CGraph.o CKMeans.o > CDiffusion.o libarpack_Linux.a -lgfortran -I. -o motionseg -O3 > /usr/bin/ld: cannot find -lgfortran > collect2: ld returned 1 exit status > make: *** [default] error 1 > > libgfortran is there in /usr/bin. > > Thanks, > Naveen > > On Nov 12, 10:21 pm, naveen shankar <[email protected]> > wrote: > > will post it on monday.(out for weekend!) > > > > thanks, > > naveen > > > > On Nov 11, 10:03 pm, Daniel Eggleston <[email protected]> wrote: > > > > > Can we see the full command executed, and the complete text of the > errors? > > > > > On Thu, Nov 11, 2010 at 10:15 AM, naveen shankar < > [email protected] > > > > > > wrote: > > > > hi, > > > > I'm using ubuntu 10.04, and on the new ubuntu -'lg2c' did not work, > > > > so i installed the newer version which is libgfortran. now I'm > linking > > > > using '-lgfortran' but still I'm getting undefined reference errors. > > > > what could be the problem? name of the library installed under /usr/ > > > > lib is libgfortran.so.0.0.3 > > > > > > Thanks, > > > > Naveen > > > > > > -- > > > > You received this message because you are subscribed to the Linux > Users > > > > Group. > > > > To post a message, send email to [email protected] > > > > To unsubscribe, send email to > [email protected] > > > > For more options, visit our group at > > > >http://groups.google.com/group/linuxusersgroup > > > > > -- > > > > > Daniel > > > > > > -- > You received this message because you are subscribed to the Linux Users > Group. > To post a message, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit our group at > http://groups.google.com/group/linuxusersgroup > -- Daniel -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup
