[MacPorts] #29059: ld: symbol(s) not found error when compiling fortran code using netcdf +gcc45 and gcc45 macports install

MacPorts noreply at macports.org
Thu Apr 7 23:44:44 PDT 2011


#29059: ld: symbol(s) not found error when compiling fortran code using netcdf
+gcc45 and gcc45 macports install
------------------------------------+---------------------------------------
 Reporter:  serra@…                 |       Owner:  takeshi@…           
     Type:  defect                  |      Status:  new                 
 Priority:  Normal                  |   Milestone:                      
Component:  ports                   |     Version:  1.9.2               
 Keywords:                          |        Port:  netcdf              
------------------------------------+---------------------------------------

Comment(by takeshi@…):

 You need to link against the netcdf fortran library.

 {{{
 $ nc-config --flibs
 -L/opt/local/lib -lnetcdff -lnetcdf
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/29059#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list