Skip to content
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

Clash of names between top level function and C #94

Closed
kikofernandez opened this issue Feb 18, 2015 · 0 comments
Closed

Clash of names between top level function and C #94

kikofernandez opened this issue Feb 18, 2015 · 0 comments
Assignees
Labels

Comments

@kikofernandez
Copy link
Contributor

Sometimes we do not change the name of the generated c functions and you get weird errors because at the C level, we included a library that happens to have the same name as the function that you define in Encore.

For instance, I cannot use the name bind nor sync because they have been already imported in the new pony runtime from uninstd.h and therefore it thinks that I want to re-declare an already used name.

Example:

def sync(): int
  3

class Main
  def main(): void
    ()

Error:

In file included from test_src/shared.c:1: test_src/header.h:93:12: error: redefinition of 'sync' as different kind of symbol closure_t* sync;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants