-
Notifications
You must be signed in to change notification settings - Fork 588
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
Builder fails to parse declaration prefix ## name #525
Comments
Please try again with JavaCPP 1.5.6 and make sure to read this page: |
I have tried JavaCPP 1.5.6, but I still report this error. The following macro definition may not be supported:
|
I am going to need a little more context to answer this question. Could you show me all the code that you have? |
The InforMapper class: @Properties(inherit = javacpp.class,
target = "org.bytedeco.liquiddsp.global.liquid",
value = {
@Platform(include = "liquid.h", link = "liquid")
})
@NoException
public class liquid implements InfoMapper {
static {
Loader.checkVersion("org.bytedeco", "liquid-dsp");
}
@Override
public void map(InfoMap infoMap) {
infoMap.put(new Info("HAVE_FFTW3_H && !defined LIQUID_FFTOVERRIDE").define(false));
}
} The attachment is the header file. |
Ok, thank you! I found what the issue was. I've fixed this in commit ed47300. |
Great! It is working now! |
The fix has been released with JavaCPP 1.5.7. Thanks for reporting! |
When trying to package the liquid-dsp project (https://github.com/jgaeddert/liquid-dsp)
The actual error message:
Info: Parsing liquid.h
Exception in thread "main" org.bytedeco.javacpp.tools.ParserException: liquid.h:325:"
#define LIQUID_CONCAT(prefix, name) prefix ## name": Could not parse declaration at '##'
at org.bytedeco.javacpp.tools.Parser.declarations(Parser.java:4042)
at org.bytedeco.javacpp.tools.Parser.extern(Parser.java:3941)
at org.bytedeco.javacpp.tools.Parser.declarations(Parser.java:4035)
at org.bytedeco.javacpp.tools.Parser.parse(Parser.java:4125)
at org.bytedeco.javacpp.tools.Parser.parse(Parser.java:4266)
at org.bytedeco.javacpp.tools.Builder.parse(Builder.java:108)
at org.bytedeco.javacpp.tools.Builder.build(Builder.java:1103)
at org.bytedeco.javacpp.tools.Builder.main(Builder.java:1450)
The text was updated successfully, but these errors were encountered: