Skip to content

Commit

Permalink
filesystem::path need .string().c_str() on windows for const char *
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 13, 2024
1 parent 15d0957 commit 4a20b98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VCellZipUtils/src/ZipUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ void addFilesToZip(const filesystem::path& ziparchive, const filesystem::path& f
int argc = 0;
argv[argc++] = "ziptool_main";
argv[argc++] = "-cn";
argv[argc++] = ziparchive.c_str();
argv[argc++] = ziparchive.string().c_str();
argv[argc++] = "add_file";
argv[argc++] = entryName1.c_str();
argv[argc++] = filepath1.c_str();
argv[argc++] = filepath1.string().c_str();
argv[argc++] = "0";
argv[argc++] = "0";
argv[argc++] = "set_file_compression";
Expand All @@ -143,7 +143,7 @@ void addFilesToZip(const filesystem::path& ziparchive, const filesystem::path& f
string indexSecondAddedEntry = to_string(existingEntries + 1);
argv[argc++] = "add_file";
argv[argc++] = entryName2.c_str();
argv[argc++] = filepath2.c_str();
argv[argc++] = filepath2.string().c_str();
argv[argc++] = "0";
argv[argc++] = "0";
argv[argc++] = "set_file_compression";
Expand Down

0 comments on commit 4a20b98

Please sign in to comment.