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

Namespace support #19

Open
v1993 opened this issue Jun 30, 2016 · 4 comments
Open

Namespace support #19

v1993 opened this issue Jun 30, 2016 · 4 comments

Comments

@v1993
Copy link

v1993 commented Jun 30, 2016

If I try to load some libs, I've got an error:

/home/v/.luarocks/share/lua/5.2/lcpp.lua:1952: unknown type namespace on line _linenum_

What about it?

P.S.: I load it with ffi.cdef().

@Playermet
Copy link

Playermet commented Jun 30, 2016

What libraries you are trying to load? Seems like in problem header used undeclared type. lcpp has nothing to do with it.

@m-schmoock
Copy link
Owner

Hey,

what version of lcpp are you using? https://github.com/m-schmoock/lcpp/blob/master/lcpp.lua#L1952 does not relate to such error.

  • what lib are you trying to load?

@v1993
Copy link
Author

v1993 commented Jun 30, 2016

I'm trying to load <stdio.h>. I'm using version from main branch of this repo.

@Playermet
Copy link

Playermet commented Jun 30, 2016

Can't reproduce - no errors with headers from MinGW 4.9.3.

local lcpp = require("lcpp/lcpp")
local ffi = require("ffi")
ffi.cdef("#include <stdio.h>")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants