Program: bbtk
Module: $RCSfile: bbtkUtilities.h,v $
Language: C++
- Date: $Date: 2008/01/29 10:12:45 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/01/30 15:29:07 $
+ Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
{
pkgname = name;
}
-
+
// remove {.so | dll} if any
std::string::size_type dot_position = pkgname.find_last_of('.');
if (dot_position != std::string::npos){
// tooHigh : true is user supplies a library pathname with too many "../"
bool tooHigh = false;
-//std::cout << "------------------cwd [" << cwd << "]" << std::endl;
+//std::cout << "------------------cwd [" << cwd << "] name [" << name << "]" << std::endl;
- if ( name[0] == '/' || name[0] == '\\' )
+ if ( name[0] == '/' || name[1] == ':' ) // Linux or Windows absolute name
{
return(libname);
}