[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] Linking a RTLinux module



Thu, 14 Dec 2000 Gerhard Obrecht wrote:
> Hi,
> 
> when I want to insmod my rtl-module these unresolved externals are reported:
> lseek
  ^^^^^
Not available in the RTL POSIXIO layer, AFAIK. (Not much point, as the layer is
meant for device I/O, rather than file access...)


> and modf). My module
  ^^^^
It's either a macro/inline in math.h, or a function in libm.

Just linking in the code *could* work, but it's rather likely that that would
result in various other things being pulled in, such as fprintf() and various
error handling code that can't be in a module. In that case, you have to rip
the code and remove or change the error handling code to suit your needs.


//David

..- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
..- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> david@linuxdj.com -'