-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build on Windows Machine #4
Comments
Hi! Do you have any solution? 🤔 @gsoosk @sadmanbrad |
I think we can change the implementation of Lines 209 to 246 in 03a8239
to this: int readMapFromFile(std::string fname, std::map<std::string, std::string> *m) {
ifstream inputStream(fname);
std::string line;
if (inputStream.fail())
return -errno;
while (getline(inputStream, line)) {
auto tokens = tokenize(line, '=');
// KEY VALUE
(*m)[tokens[0]] = tokens[1];
}
return (*m).size();
} |
Thank you. Your code seems much cleaner than the old one. :D I did not remember internals of library, so I'll ask someone else to review it and apply the patch if everything is OK. A MR will be appreciated, too. :D |
How can I build this library on the Windows machine?
make
command output on Windows 10:The text was updated successfully, but these errors were encountered: