]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.cxx
KWWidgets support
[bbtk.git] / kernel / src / bbtkUtilities.cxx
index cce469f9855196150479dbfb430f7b1dec9a31ab..dafd6ceb9f13f41c652aa526f19e32b78b0a7fa7 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/11/26 12:49:57 $
+  Version:   $Revision: 1.9 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -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");
        }
     }
     //=======================================================================