This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC Linking Problem


I got a GCC linking problem that many of you must already have answers.
Appreciate your help if you can

It worked for a simple program
       g++  -o test.exe -O -lnetcdf -lm 

It can not find functions in the netcdf library for a complex program
       g++ -o appl.exe -O  < a lot of libraries and object files> -lnetcdf
-lm

But it worked for this:
       g++ -o appl.exe -O  < a lot of libraries and object files>  -lm
/usr/local/lib/libnetcdf.a



Chuck Peng
Email:  Chuck.C.Peng@bhpbilliton.com


EOM 

NOTICE - This message and any attached files may contain information that is
confidential and/or subject of legal privilege intended only for use by the
intended recipient. If you are not the intended recipient or the person
responsible for delivering the message to the intended recipient, be advised
that you have received this message in error and that any dissemination,
copying or use of this message or attachment is strictly forbidden, as is
the disclosure of the information therein.  If you have received this
message in error please notify the sender immediately and delete the
message.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]