Re: [Plib-devel] Compile Problems with MSVC
Brought to you by:
sjbaker
From: <Va...@t-...> - 2000-02-15 15:43:41
|
"Vallevand, Mark K" wrote: > > Hmmm. I regularly compile PLIB with MSVC v6. I don't remember > this problem. It seems to compile right out of the box. I'll > check again at home tonight. I have version 1.1.9. IIRC 1.1.9 is quite old. > > I have got a compile problem in file ssgSimpleState.cxx. The four > > lines > > > > specular_colour = src -> specular_colour ; > > emission_colour = src -> emission_colour ; > > ambient_colour = src -> ambient_colour ; > > diffuse_colour = src -> diffuse_colour ; > > > > dont compile under MSVC. The error > > is > > "=": The left operand has to be a L-Value. > > > > specular_colour etc are member-variables of > > ssgSimpleState with type sgVec4. > > When I change the type in file ssg.h > > into SGfloat * then it compiles, but > > I see this as a kludge. > > However, I found no other solution :-(. I have never tried to compile that stuff, but I guess that you'd either need a sgCopyVec4 or make sure (through a cast) that you want to set the pointer to specular_colour/... to the pointer to src->specular_colour/... Just a thought. CU, Christian |