Skip to content

AssertionError: duplicated definitions should be exactly the same! #392

Answered by Gnimuc
amontoison asked this question in Q&A
Discussion options

You must be logged in to vote

Do you want to merge all of the symbols in these headers into a single module? If not, you could create a new context for each header and generate 4 different Julia modules.

Clang.jl will try to merge all identifiers(variable names) within one context. These headers contain definition collisions like:

#define mc69_verify mc69_verify_s
...
#define mc69_verify mc69_verify_d

so, it's impossible to generate valid code in a single Julia module. Julia doesn't allow us to define:

const mc69_verify  = mc69_verify_s;
const mc69_verify  = mc69_verify_d;

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@amontoison
Comment options

@Gnimuc
Comment options

@amontoison
Comment options

@Gnimuc
Comment options

@amontoison
Comment options

Answer selected by amontoison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants