Skip to content

Commit 1ffeb0f

Browse files
author
timmyliu
committed
fix linux build
1 parent 4f204b2 commit 1ffeb0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/library/tools/OCLBinaryGenerator/OCLBinaryGenerator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ int main(int argc, char *argv[])
233233

234234
//get the input path
235235
std::string inputPath = argv[1];
236-
inputPath += "\\";
236+
inputPath += "/";
237237
std::cout << "OCLBinaryGenerator input path is " << inputPath <<std::endl;
238238

239239
//get the input filename
@@ -243,7 +243,7 @@ int main(int argc, char *argv[])
243243

244244
//get the path to destination
245245
std::string outputPath = argv[3];
246-
outputPath += "\\";
246+
outputPath += "/";
247247
std::cout << "OCLBinaryGenerator output path is " << outputPath << std::endl;
248248

249249
//output filename
@@ -309,7 +309,7 @@ int main(int argc, char *argv[])
309309
size_t kernelBinarySize;
310310

311311

312-
std::ifstream inputfile(inputPath+inputFilename);
312+
std::ifstream inputfile((inputPath+inputFilename).c_str());
313313
if (!inputfile.is_open())
314314
{
315315
printf("Input file does not exist. OCLBinaryGenerator aborted.\n");
@@ -344,4 +344,4 @@ int main(int argc, char *argv[])
344344
//end writing file
345345
outputFile.close();
346346
printf("OCLBinaryGenerator finished.\n");
347-
}
347+
}

0 commit comments

Comments
 (0)