Re: undefined reference to 'NewDouble'
- Posted by mattlewis (admin) Apr 22, 2013
- 1804 views
Alternatively, we could turn the runtime library into a dynamic / shared library and link it that way.
Well, if we did that and nothing else, we'd still have the issues with default_heap and _00 and other auto-generated symbols...
I don't know if a shared library is the way to go. What I think would be really helpful is just a static library that provides all of the NewS1/NewDouble stuff and reference counting measures to create, pass, and accept Euphoria objects in native C/C++ code. I suppose it wouldn't be terribly difficult to extract the necessary parts from the backend code and adapt them for independent use, but I was thinking it could be part of the Euphoria build process.
Yes. I was posting before coffee, and I don't think I really understood what you were trying to do. This would be a useful thing, instead of having the copied code that's currently in wxEuphoria. It's been a while since I've messed with any of that.
Matt