|
![](/i/fill.gif) |
Howdy -
Still stumbling along. (have moved to mcp code) Current questions:
1- shdrglue.c and shdrexec.c report 'parse error before long' at this line:
long labs (long); (in stdlib.h)
2 - besides this, the following warnings were issued:
isosurf.c:1143: warning: `iso_fn' declared inline after being called
isosurf.c:1183: warning: `iso_func' declared inline after being called
povray.c: In function `main':
povray.c:279: warning: return type of `main' is not `int'
overall output was a large number of .o files (all but the 2 mentioned in
question 1)
In addition, 'make all' returned a huge list of undefined references.
Any clues would be appreciated.
setep
-----------------------------------------------
isosurf.c 1138-1150 :
#ifdef _WIN32
__inline DBL iso_fn(ISOSURFACE *ISOSRF, DBL *t)
#else
DBL iso_fn(ISOSURFACE *ISOSRF, DBL *t)
#endif
{
FUNCTION *Func=ISOSRF->Func;
VEvaluateRay(VTmp, ISOSRF->P, *t, ISOSRF->D);
return(
(DBL)(ISOSRF->Inv3)*(Func->sign)
*( (Func->iso_func) (Func, VTmp)- Func->threshold) );
}
--------------------------------------------------
isosurf.c 1177-1188 :
#ifdef _WIN32
__inline DBL iso_func(FUNCTION *Func,VECTOR VPos)
#else
DBL iso_func(FUNCTION *Func,VECTOR VPos)
#endif
{
DBL temp=(Func->iso_func)(Func,VPos);
return((Func->sign)*( temp- Func->threshold) );
/* return((Func->sign)*( (Func->iso_func) (Func, VPos)- Func->threshold) );
*/
}
--------------------------------------------------
povray.c 266-279 :
#ifdef NOCMDLINE /* a main() by any other name... */
#ifdef ALTMAIN
MAIN_RETURN_TYPE alt_main()
#else
MAIN_RETURN_TYPE main()
#endif
#else
#ifdef ALTMAIN
MAIN_RETURN_TYPE alt_main(int argc, char **argv)
#else
MAIN_RETURN_TYPE main(int argc, char **argv)
#endif
#endif /* ...would be a lot less hassle!! :-) AAC */
{
Post a reply to this message
|
![](/i/fill.gif) |