Skip to content

Namespace support #19

Open
Open

Description

@v1993

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().

Activity

  1. Playermet commented on Jun 30, 2016

    @Playermet

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

  2. m-schmoock commented on Jun 30, 2016

    @m-schmoock
    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?
  3. v1993 commented on Jun 30, 2016

    @v1993
    Author

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

  4. Playermet commented on Jun 30, 2016

    @Playermet

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions