November 21, 2004 Re: Newbie: Standard Input? Readline? Convert to double? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | In article <a56572-ho5.ln1@kuehne.cn>, Thomas Kuehne says... > > >matthew_hurne@yahoo.com schrieb am Sun, 21 Nov 2004 00:23:45 +0000 (UTC): >> I edited dmd/src/phobos/etc/c/stlsoft/stlsoft_null.h with the following (this is what it appeared the patching would do...) >> >> Removed line 242: >> NULL_v(NULL_v const &); >> >> And moved it under public: >> >> I rebuilt with make -f linux.mak and copied the libphobos.a to /usr/lib, overwriting the original, ran /sbin/ldconfig, and then tried my compile again. And I got the same errors. >> >> *sigh* All this just to try to do basic input from the console? This is kinda silly... > >This is indeed a wierd bug. >If the content of std.stdarg is copied into the downloaded stdio package and all >imports for std.stdarg removed the test programm compiles - but doesn't >read any input. > >Seems to be a compiler bug. Might be worth grabbing my implementation of the standard C headers here: http://home.f4.ca/sean/d/stdc.zip They have everything written in terms of wint_t, etc, and so should be easier to adapt to unix systems. You can compile and link in all headers but stdio.d. For some reason including this compiled file breaks output--I haven't figured out why. I thought it might be something to do with the standard output haldes, but there's no warning about multiply defined symbols so I'm kind of stumped. Sean |
Copyright © 1999-2021 by the D Language Foundation