]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkUtilities.cxx
index cce469f9855196150479dbfb430f7b1dec9a31ab..778b45e215e705a18e2926d9f7bfee6ed1e962e0 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUtilities.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:14 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/12/12 10:20:48 $
+  Version:   $Revision: 1.10 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -30,6 +30,7 @@
 
 
 #include "bbtkUtilities.h"
+#include "bbtkMessageManager.h"
 
  
 
@@ -260,8 +261,12 @@ namespace bbtk
        else
           libname += "libbb";
        libname += pkgname;
-       libname += ".so";
-         
+#if defined(MACOSX)
+         libname += ".dylib";
+#else
+         libname += ".so";
+#endif 
+         
 #elif defined(_WIN32)
        if (c != '\\')
           libname = path+"\\bb";
@@ -362,9 +367,9 @@ namespace bbtk
        }
       else
        {
-         // bbtkError(in<<" : expected 'a.b' format but no dot found");
          left ="";
          right = "";
+         bbtkGlobalError("Token '"<<in<<"' : expected 'a.b' format but no dot found");
        }
     }
     //=======================================================================
@@ -522,7 +527,7 @@ namespace bbtk
       std::string ss("\\n");
       std::string::size_type pos = 0;
       pos = s.find(ss,0);
-      char* cr = "\n";
+      const char* cr = "\n";
       while ( pos != std::string::npos )
        {
          s.replace(pos,2,cr,1);