Changeset 2190 in Sophya


Ignore:
Timestamp:
Sep 10, 2002, 8:54:28 AM (23 years ago)
Author:
ansari
Message:

Suite correction construction nom de fichier .o .so ds CxxCompilerLinker - Reza 10/9/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/cxxcmplnk.cc

    r2183 r2190  
    145145    else p++;
    146146    q = name.rfind('.');
    147     if (q < l)  oname = tmpDir + name.substr(p, q-p) + ".o";
     147    if ((q < l) && (q > p))  oname = tmpDir + name.substr(p, q-p) + ".o";
    148148    else oname = tmpDir + name.substr(p) + ".o";
    149149  }
     
    172172    else p++;
    173173    q = oname.rfind('.');
    174     if (q < l)  soname = tmpDir + oname.substr(p, q-p) + soext;
     174    if ((q < l) && (q > p))  soname = tmpDir + oname.substr(p, q-p) + soext;
    175175    else soname = tmpDir + oname.substr(p) + soext;
    176176  }
Note: See TracChangeset for help on using the changeset viewer.