Comment #0 by matti.niemenmaa+dbugzilla — 2007-01-20T15:11:15Z
setenv(3) is declared in std.c.stdlib, but isn't found anywhere by the linker.
Simple test case:
--
import std.c.stdlib;
void main() {
setenv("foo".ptr, "bar".ptr, 0);
}
Comment #1 by thomas-dloop — 2007-01-21T17:40:58Z
setenv is a POSIX.1-2001 not a C99 function,
however getenv is defined by C99...
Comment #2 by bugzilla — 2007-01-31T15:09:55Z
I'll add a comment that setenv/unsetenv are extensions, and not available on all platforms.