[uClibc]c++ and __write()

Erik Andersen andersen at lineo.com
Tue Aug 28 17:04:37 UTC 2001


On Tue Aug 28, 2001 at 11:25:02AM +0200, Fabio Parodi wrote:
> In order to link a C++ program with uClibc, I had to define the system call
> __write.
> It is used by the C++ runtime library (gcc 2.95.2) when the program uses
> pure virtual functions.
> I added the following lines in
> $(UCLIBC)/libc/sysdeps/linux/common/syscalls.c, line 64:
> 
> 	ssize_t __write(int fd, const __ptr_t buf, size_t count)
> 	{
> 		return write(fd, buf, count);
> 	}

I just put a weak alias in, so it should be ok now.

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list