Re: Use of sizeof()
- Posted by mattlewis (admin) Oct 27, 2009
- 1110 views
jimcbrown said...
On Linux, normally just using a man page is enough. My version of man page for malloc() doesn't state which library to use however, but in this case it is /lib/libc.so.6
Yeah, that usually means that it's part of the C runtime library (or maybe even more basic). When using euphoria, this means that you can simply use the result of open_dll("") in the define_c calls. Linux allows you to automatically link to things like that which are already linked (and you're pretty much guaranteed to be linked to the C runtime library--and definitely so when using euphoria).
Matt