[sldev] error while compiling on vc8/9 (unistd.h)
wuhanzymail
wuhanzymail at 163.com
Sun Apr 27 12:18:51 PDT 2008
I met this error and here is what I did:
1) right click project lscript_compile, choose properties, c/c++, Preprocessor, add 'YY_NO_UNISTD_H' to Preporcessor Definitions.
2) in lex_yy.cpp, line 5915
change:
#ifndef __cplusplus
extern int isatty (int );
#endif
to:
#ifndef YY_NEVER_INTERACTIVE
extern int isatty (int );
#endif
3) still in lex_yy.cpp, line 5943
change:
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
to:
#if YY_NEVER_INTERACTIVE
b->yy_is_interactive = 0;
#else
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
I don't know why this will happen and if my solution is correct. But at least the compile is successful. I use VS2005 to compile the viewer 1.19.1.4.
Good luck
Ying
在2008-04-27,hawk.carter at unix-dev.de 写道:
I get on compiling (VC8/VC9) this Error :
10>.\lex_yy.cpp(2509) : fatal error C1083: Cannot open include file:
'unistd.h': No such file or directory
23>LINK : fatal error LNK1181: cannot open input file 'lscript_compile.lib'
I know that the link error depends on the uinst.h error.
i tried now several ways, but seems i'm unable to remove that error.
Would be nice if anyone could help.
lecina
_______________________________________________
Click here to unsubscribe or manage your list subscription:
/index.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/sldev/attachments/20080428/1fa8f107/attachment.htm
More information about the SLDev
mailing list