Re: "No static 'LoadFromImage' in class 'sfImage'"

James Porter <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Teto wrote:
> Once i changed my line by yours,the first error message disappeared
> but is replaced by another:
> "Attempt to call a nil value"

You'll also need to bind a constructor for your class:

     luabind::class_<sf::Image >("sfImage")
         .def(constructor<>())
         .def("LoadFromFile",&sf::Image::LoadFromFile)

- Jim


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.