[Lazarus] SetEnv on Linux 64bit

Andrew Haines AndrewD207 at aol.com
Wed Apr 4 00:15:36 CEST 2012


On 04/03/12 09:57, michael.vancanneyt at wisa.be wrote:
> 
> 
> You must always set up environment variables before a program starts.
> When starting a process, the environment for that process is started and is
> then immutable for the duration of the process.
> 
> What you can do is execute the same binary again, but with the
> environment variable added to the environment of the new process.
> 
> Michael.
> 
> -- 
>

How does setenv work in libc? For instance you need to use that at
runtime to embed a SDL window into your application. (only one sdl
window per application works)

Regards,

Andrew Haines




More information about the Lazarus mailing list