[Plib-devel] Problems, mostly with MSVC 6.0
Brought to you by:
sjbaker
From: Wolfram K. <w_...@rz...> - 2000-08-03 20:41:12
|
I just got the newest stuff from CVS, I want to look at LookAt :-). BTW, long involvement in "Pretty Poly Edit" makes you speak parrot-like ;-). Anyway: All the libs compiled fine. PPE doesn't compile since the arguments for ssgLoad and ssgSave in the header- and the *.cxx-file are different. I added the "const" in the parameter-lists in the *.cxx-file and had do add a cast. This makes PPE work, but I havent looked whether fname should be const or not. Here are the changes for ssgSave, ssgLoad is analog (sp?): int ssgSave ( const char *fname, ssgEntity *ent ) ^^^^^ { if ( fname == NULL || ent == NULL || *fname == '\0' ) return FALSE ; char *extn = file_extension ( (char *) fname ) ; ^^^^^^^^ I also have problems with some of the examples. Many examples don't compile obviously since the the glu(t) stuff isn't linked. For example, this is one of the error messages I get for bend: Linking... bend.obj : error LNK2001: unresolved external symbol _glutSwapBuffers@0 BTW, for PPE I have glu32.lib in the linker/input-options after opengl32.lib. Also, I have the following errors in majik-demo.cxx: Compiling... majik_demo.cxx C:\ppe\cvs\plib\examples\src\ssg\majik\majik_demo.cxx(29) : error C2143: syntax error : missing ';' before '*' C:\ppe\cvs\plib\examples\src\ssg\majik\majik_demo.cxx(29) : error C2501: 'ssgSGIHeader' : missing storage-class or type specifiers C:\ppe\cvs\plib\examples\src\ssg\majik\majik_demo.cxx(29) : error C2501: 'material' : missing storage-class or type specifiers C:\ppe\cvs\plib\examples\src\ssg\majik\majik_demo.cxx(30) : error C2143: syntax error : missing ';' before '*' C:\ppe\cvs\plib\examples\src\ssg\majik\majik_demo.cxx(30) : error C2501: 'ssgSGIHeader' : missing storage-class or type specifiers C:\ppe\cvs\plib\examples\src\ssg\majik\majik_demo.cxx(30) : error C2086: 'ssgSGIHeader' : redefinition C:\ppe\cvs\plib\examples\src\ssg\majik\majik_demo.cxx(30) : error C2501: 'elevation' : missing storage-class or type specifiers C:\ppe\cvs\plib\examples\src\ssg\majik\majik_demo.cxx(222) : warning C4305: 'argument' : truncation from 'const double' to 'float' E -- Bye bye, Wolfram. |