[PPL-devel] Re: [sicstus-users] Re: Locating sicstus.h

Samir Genaim genaim at gmail.com
Fri Oct 21 19:14:23 CEST 2005


> so the idea would be that once you know where `sicstus' is you also know
> where `sicstus.h' is.

Once you've run sicstus you can use the following sicstus code to get the  
relevant environment variables:

   :- use_module(library(system)).

   environ('SP_RT_DIR',D1)
   environ('SP_LIBRARY_DIR',D2)
   environ('SP_APP_DIR',D3)

it does not directly give you the path to sicstus.h, but it can be  
(always??) recovered from the value SP_APP_DIR or SP_RT_DIR I guess.

Best,

-- 
Samir



More information about the PPL-devel mailing list