Ignore:
Timestamp:
06/21/12 14:08:16 (13 years ago)
Author:
Mathieu Morlighem
Message:

moved _error_ to _error2_ and added circular dependencies in Makefile.am to resolve all symbols

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/modules/Shp2Kml/Shp2Kml.cpp

    r12496 r12497  
    2525
    2626        #ifndef _HAVE_SHAPELIB_ //only works if shapelib library has been compiled in.
    27         _error_("Shapelib not available! Cannot carry out shp file translation!");
     27        _error2_("Shapelib not available! Cannot carry out shp file translation!");
    2828        #endif
    2929
     
    3333        /*checks on arguments on the matlab side: */
    3434        if (nlhs > NLHS) {
    35                 Shp2KmlUsage(); _error_("Shp2Kml usage error");
     35                Shp2KmlUsage(); _error2_("Shp2Kml usage error");
    3636        }
    3737        if (nrhs < NRHS) {
    38                 Shp2KmlUsage(); _error_("Shp2Kml usage error");
     38                Shp2KmlUsage(); _error2_("Shp2Kml usage error");
    3939        }
    4040
     
    5454
    5555        /*some checks*/
    56         if (sgn < -1 || sgn > +1) _error_("Hemisphere sgn=%d must be +1 (north), -1 (south), or 0 (no translation).",sgn);
    57         if (fabs(cm)      > 180.) _error_("Central meridian cm=%g must be between -180 (west) and +180 (east) degrees.",cm);
    58         if (sp < 0. || sp >  90.) _error_("Standard parallel sp=%g must be between 0 and 90 degrees (in specified hemisphere).",sp);
     56        if (sgn < -1 || sgn > +1) _error2_("Hemisphere sgn=" << sgn << " must be +1 (north), -1 (south), or 0 (no translation).");
     57        if (fabs(cm)      > 180.) _error2_("Central meridian cm=" << cm << " must be between -180 (west) and +180 (east) degrees.");
     58        if (sp < 0. || sp >  90.) _error2_("Standard parallel sp=" << sp << " must be between 0 and 90 degrees (in specified hemisphere).");
    5959
    6060        /* Run core computations: */
Note: See TracChangeset for help on using the changeset viewer.