<div dir="ltr">Hi all,<div><br></div><div>i ran into the same problem (when compiling in vs2012), see this changeset:</div><div><a href="https://github.com/openscenegraph/OpenSceneGraph/commit/e64e70870d51873621be4f90f1301640d882704d">https://github.com/openscenegraph/OpenSceneGraph/commit/e64e70870d51873621be4f90f1301640d882704d</a><br></div><div><br></div><div><span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre;background-color:rgb(234,255,234)">char</span><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre;background-color:rgb(234,255,234)">* start_of_string;</span><br></div><div><br></div><div>this is caused by the fact that the file is c code, not c++ and the new variable needs to be declared at the start of the block.</div><div><br></div><div>(updated file is attached)</div><div><br></div><div>groetjes,</div><div>René</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-08 9:11 GMT+02:00 nguyen duy nam <span dir="ltr"><<a href="mailto:osgforum@tevs.eu" target="_blank">osgforum@tevs.eu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, help me<br>
log error<br>
All outputs are up-to-date.<br>
3> lstring.c<br>
3>..\..\..\..\..\sources\<wbr>openscenegraph3.5.0\src\<wbr>osgPlugins\lua\lua-5.2.3\src\<wbr>lstring.c(107): error C2143: syntax error : missing ';' before 'type'<br>
3>..\..\..\..\..\sources\<wbr>openscenegraph3.5.0\src\<wbr>osgPlugins\lua\lua-5.2.3\src\<wbr>lstring.c(108): error C2065: 'start_of_string' : undeclared identifier<br>
3>..\..\..\..\..\sources\<wbr>openscenegraph3.5.0\src\<wbr>osgPlugins\lua\lua-5.2.3\src\<wbr>lstring.c(108): warning C4022: 'memcpy' : pointer mismatch for actual parameter 1<br>
3>..\..\..\..\..\sources\<wbr>openscenegraph3.5.0\src\<wbr>osgPlugins\lua\lua-5.2.3\src\<wbr>lstring.c(109): error C2065: 'start_of_string' : undeclared identifier<br>
3>..\..\..\..\..\sources\<wbr>openscenegraph3.5.0\src\<wbr>osgPlugins\lua\lua-5.2.3\src\<wbr>lstring.c(109): error C2109: subscript requires array or pointer type<br>
3>..\..\..\..\..\sources\<wbr>openscenegraph3.5.0\src\<wbr>osgPlugins\lua\lua-5.2.3\src\<wbr>lstring.c(117): error C2143: syntax error : missing '{' before '*'<br>
3>..\..\..\..\..\sources\<wbr>openscenegraph3.5.0\src\<wbr>osgPlugins\lua\lua-5.2.3\src\<wbr>lstring.c(118): warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int<br>
3>..\..\..\..\..\sources\<wbr>openscenegraph3.5.0\src\<wbr>osgPlugins\lua\lua-5.2.3\src\<wbr>lstring.c(127): warning C4133: 'return' : incompatible types - from 'TString *' to 'int *'<br>
3>..\..\..\..\..\sources\<wbr>openscenegraph3.5.0\src\<wbr>osgPlugins\lua\lua-5.2.3\src\<wbr>lstring.c(150): warning C4133: 'return' : incompatible types - from 'int *' to 'TString *'<br>
3><br>
...<br>
anyone show me, how to fix.<br>
Thank you!<br>
<br>
Cheers,<br>
nguyen<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=68301#68301" rel="noreferrer" target="_blank">http://forum.openscenegraph.<wbr>org/viewtopic.php?p=68301#<wbr>68301</a><br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</blockquote></div><br></div>