[sldev] Compile errors of SL viewer 1.20 in VS2005

Felix Duesenburg kfa at gmx.net
Fri Apr 25 06:59:58 PDT 2008


Just did a search to give a qualified answer, when I saw... unistd.h is
included in about 10 places, but /only/ on OS's other than Windows.
Every single instance is filtered by a compiler directive. Did you do
any tweaking of the project settings that could disable LL_WINDOWS?

wuhanzymail wrote:
>  Thanks Felix, I think I've already done all of things mentioned in these three links. But the first problem still exists.
>  
> "linden\indra\lscript\lscript_compile\lex_yy.cpp(2514) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory"
>  
>  I checked the whole directory of 'linden' and did not find 'unistd.h'. It seems that the lex_yy.cpp is created dynamically when I compile 'lscript_compile_fb'? 
>  The problem is located in Ln2516 of lex_yy.cpp
> ---------------------------------------------------------------------------------
> ...
> #ifndef YY_NO_UNISTD_H
> /* Special case for "unistd.h", since it is non-ANSI. We include it way
>  * down here because we want the user's section 1 to have been scanned first.
>  * The user has a chance to override it with an option.
>  */
> #include <unistd.h>
> #endif
> ...
> 
> ---------------------------------------------------------------------------------
>  
> Is there any other setting of environment I missed? 
>  
> Ying
> 


More information about the SLDev mailing list