-
Notifications
You must be signed in to change notification settings - Fork 186
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
update podspec #3526
update podspec #3526
Conversation
Line 45: #include <algorithm> This is a standard C++ header file: https://cplusplus.com/reference/algorithm Do you know what compiler/version is being used? |
LLVM clang version 15.0.0 on macOS 14. |
It's strange, because we have it also in other headers, but no complaints on them. |
Yes, that is strange. Perhaps There are two C header files loaded just before #include <stdarg.h>
#include <string.h>
#include <algorithm>
#include <cctype>
#include <chrono>
#include <cmath>
#include <cstring>
#include <ctime>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <locale>
#include <map>
#include <regex>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector> Perhaps converting #include <stdarg.h>
#include <string.h> will fix the problem. Mixing C and C++ header files should not be a problem, but it would be good to try. In C++, you can include C headers like Here's how you can include them in C++ code to use only C++ headers: #include <cstdarg> // for <stdarg.h>
#include <cstring> // for <string.h> And see if the problem with |
Funny, because now it's
|
When are you having this error? Building what? |
Funny, but predictable yet still strange: it is complaining about the first C++ header file, but skipped over it when it was formatted as a C header include. So somehow it seems that humlib.h is treated as C source code. I have clang 14.0.3 on MacOS 13.4.1 (Ventura). Maybe I should risk updating to macOS 14 Sonoma which was released last week (https://en.wikipedia.org/wiki/MacOS_Sonoma). On Linux, I have clang 16.0.6 (but uses gcc 13.2.1). I am getting only one warning compiling verovio, but it is a new one:
|
It's not connected to macOS, I hit this particular thing before. |
It builds without problem and no warning for me with xcode 15.0 on macos 13.5.2 |
And seems to build fine here https://github.com/rism-digital/verovio/actions/runs/6378048545/job/17307890306 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change back the version? Then I can merge it and update the pod after the next release.
I made some updates to the podspec file, but now I'm stuck with this error:
humlib.h:45:10: fatal error: 'algorithm' file not found