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 $
=========================================================================*/
/* ---------------------------------------------------------------------
#include "bbtkUtilities.h"
+#include "bbtkMessageManager.h"
else
libname += "libbb";
libname += pkgname;
- libname += ".so";
-
+#if defined(MACOSX)
+ libname += ".dylib";
+#else
+ libname += ".so";
+#endif
+
#elif defined(_WIN32)
if (c != '\\')
libname = path+"\\bb";
}
else
{
- // bbtkError(in<<" : expected 'a.b' format but no dot found");
left ="";
right = "";
+ bbtkGlobalError("Token '"<<in<<"' : expected 'a.b' format but no dot found");
}
}
//=======================================================================
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);