Looks like you need to include the FlexLexer.h header file in the
source. At least that is what is stated at the start of the file and
that seemed to solve the problem for the short term. I see it is in the
Producer/src/Producer directory. The explicit call out with an #include
"FlexLexer.h" worked. Why gcc Linux complains and it works on MS windows
might be the way the make files are setup. Pure speculation on my part....
At any rate, it compiled, linked and installed...
Regards
John W.
Paul Martz wrote:
If you just can't make any headway with it, then try checking out Producer
sticky to this tag:
Producer_OpenSceneGraph_BranchPoint
That tag corresponds to the last known-good Producer prior to the recent
round of changes (which caused several issues, including possibly yours).
Don can look at this when he's back in the office next week.
-Paul
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
John Wojnaroski
Sent: Saturday, November 18, 2006 5:34 PM
To: osg users
Subject: Re: [osg-users] CVS compile error
OSG is new ground for me; not all that facile with the code
yet, but I will have a go at it.
The source is the latest CVS version I downloaded and tried
this morning. First try missed with the a missing DMake, got
that corrected.
I'll let you know how I'm doing and if I find anything....
Regards
John W
Paul Martz wrote:
Hi John --
This builds fine for me on Windows, so I'm not sure why it
is broke for
you on Linux.
yy_current_buffer is defined as a protected member variable in the
yyFlexLexer class (see FlexLexer.h), so certainly
yyFlexLexer::yylex()
should be able to access it. Can you do a little snooping on
your end
and see if you can determine why this might not be working?
Note that the preceding few lines reference "yyin" and
"yyout". These
are also protected member variables in yyFlexLexer,, declared just
prior to yy_current_buffer in FlexLexer.h, so I'm stumped.
Let me know what you come up with.
-Paul
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Wojnaroski
Sent: Saturday, November 18, 2006 12:26 AM
To: [email protected]
Subject: [osg-users] CVS compile error
Downloaded latest from all three CVS directories:
OpenThreads is OK
Error in Producer:
../CameraGroup.cpp:271: warning: unused variable `bool isit'
g++ -I../../..//include -Wall -O2 -I.././/../include -c
../CameraConfig.cpp
g++ -I../../..//include -Wall -O2 -I.././/../include -c
../Timer.cpp
g++ -I../../..//include -Wall -O2 -I.././/../include -c
g++ ../Version.cpp -I../../..//include -Wall -O2
-I.././/../include
g++ -c
../ConfigLexer.cpp
ConfigLexer.cpp: In member function `virtual int
yyFlexLexer::yylex()':
ConfigLexer.cpp:853: error: `yy_current_buffer' undeclared
(first use
this
function)
ConfigLexer.cpp:853: error: (Each undeclared identifier is reported
only once
for each function it appears in.)
make[3]: *** [ConfigLexer.o] Error 1
make[3]: Leaving directory
`/usr/local/src/Producer/src/Producer/Linux32.Opt'
make[2]: *** [libProducer.so.opt] Error 2
make[2]: Leaving directory `/usr/local/src/Producer/src/Producer'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/usr/local/src/Producer/src'
make: *** [default] Error 1
tower:/usr/local/src/Producer#
Regards
John W.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/