Opt icon indicating copy to clipboard operation
Opt copied to clipboard

compilation failed with terralib.lua:3357: in function 'includecstring'

Open billbliss3 opened this issue 6 years ago • 1 comments

my system is windows10 x64 and my lua terra works as follow:

`Terra -- A low-level counterpart to Lua

Stanford University [email protected]

=3+3 6

`

but when I run the buildOpt.bat to build opt.lib, it comes with error it seems that : stack traceback: [C]: in function 'registercfile' C:\Users\zdevito\terra\src\terralib.lua:3357: in function 'includecstring' D:\code\Optlang\Opt\API\.\src\createWrapper.t:23: in main chunk warning is as follow

PS D:\code\Optlang\Opt\API> .\buildOpt.bat

D:\code\Optlang\Opt\API>set OPT_DIR=D:\code\Optlang\Opt\API\

D:\code\Optlang\Opt\API>"D:\code\Optlang\Opt\API\common\optMake.bat" "D:\code\Optlang\Opt\API\....\terra" "D:\code\Optlang\Opt\API\." "false"

D:\code\Optlang\Opt\API>echo Remaking Opt.dll Remaking Opt.dll

D:\code\Optlang\Opt\API>set TERRAHOME="D:\code\Optlang\Opt\API\....\terra"

D:\code\Optlang\Opt\API>set TERRA="D:\code\Optlang\Opt\API\....\terra"\bin\terra

D:\code\Optlang\Opt\API>set OPT_DIR="D:\code\Optlang\Opt\API\."

D:\code\Optlang\Opt\API>set OPT_FULL_BUILD="false"

D:\code\Optlang\Opt\API>"D:\code\Optlang\Opt\API\....\terra"\bin\terra "D:\code\Optlang\Opt\API\."\src\createWrapper.t Opt "D:\code\Optlang\Opt\API\."\src o "D:\code\Optlang\Opt\API\."\release\include\Opt.h .\Opt.dll "false" :3:14: fatal error: 'stdio.h' file not found #include <stdio.h> ^ compilation of included c code failed

stack traceback: [C]: in function 'registercfile' C:\Users\zdevito\terra\src\terralib.lua:3357: in function 'includecstring' D:\code\Optlang\Opt\API\.\src\createWrapper.t:23: in main chunk

billbliss3 avatar Apr 17 '18 17:04 billbliss3

Hmm, it can't find the C stdlib. Can you run the terra tests and see if they pass?

Mx7f avatar Aug 08 '18 18:08 Mx7f