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

use case: @cImport the enet library (improve translate-c) #1631

Open
andrewrk opened this issue Oct 3, 2018 · 1 comment
Open

use case: @cImport the enet library (improve translate-c) #1631

andrewrk opened this issue Oct 3, 2018 · 1 comment
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. frontend Tokenization, parsing, AstGen, Sema, and Liveness. translate-c C to Zig source translation feature (@cImport)
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Oct 3, 2018

<tom1998> Heyo
<tom1998> Last night I was having an issue @cIncluding the enet library - I tried it with translate-c, and got this src file:
<tom1998> https://pastebin.com/EK0GaPDt
<tom1998> This fails to compile, since there are 2 definitions of suboptarg in the generated file
<tom1998> on linux, this isn't an issue! suboptarg seems to be a mac-specific variable, since it only pops up in the apple developer OS docs
<tom1998> This is pretty much as far as I can go with this, it should be noted that enet compiles fine with C
@andrewrk andrewrk added this to the 0.5.0 milestone Oct 3, 2018
@andrewrk andrewrk added the translate-c C to Zig source translation feature (@cImport) label Jun 16, 2019
@andrewrk andrewrk modified the milestones: 0.5.0, 0.6.0 Jul 2, 2019
@andrewrk andrewrk modified the milestones: 0.6.0, 0.7.0 Oct 23, 2019
@andrewrk andrewrk added contributor friendly This issue is limited in scope and/or knowledge of Zig internals. frontend Tokenization, parsing, AstGen, Sema, and Liveness. labels Jan 2, 2020
@daurnimator
Copy link
Collaborator

@tomc1998 could you give this a try with latest master?

@andrewrk andrewrk modified the milestones: 0.7.0, 0.8.0 Aug 13, 2020
@andrewrk andrewrk modified the milestones: 0.8.0, 0.10.0 May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. frontend Tokenization, parsing, AstGen, Sema, and Liveness. translate-c C to Zig source translation feature (@cImport)
Projects
None yet
Development

No branches or pull requests

2 participants