www.smartbusinesschoices.com

Leading Business and Technology,
News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

error compiling opensp
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux Development - Applications  
View previous topic :: View next topic  
Author Message
Gang Greene
Guest






PostPosted: Wed Nov 12, 2008 6:43 am    Post subject: error compiling opensp Reply with quote

Sorry if this is the wrong group for this.....

I am trying to compile opensp using gcc 4.3.2 and have this error:

In file included from ArcEngine.cxx:20:
.../include/InternalInputSource.h:37: error: extra
qualification 'OpenSP::InternalInputSource::' on
member 'asInternalInputSource'

Here is the header file

// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.

#ifndef InternalInputSource_INCLUDED
#define InternalInputSource_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif

#include <stddef.h>
#include "InputSource.h"
#include "Allocator.h"
#include "StringC.h"
#include "types.h"

#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif

class InputSourceOrigin;
class Messenger;
class NamedCharRef;

class SP_API InternalInputSource : public InputSource {
public:
void *operator new(size_t sz, Allocator &alloc) { return
alloc.alloc(sz); }
void *operator new(size_t sz) { return Allocator::allocSimple(sz); }
void operator delete(void *p) { Allocator::free(p); }
#ifdef SP_HAVE_PLACEMENT_OPERATOR_DELETE
void operator delete(void *p, Allocator &) { Allocator::free(p); }
#endif
InternalInputSource(const StringC &, InputSourceOrigin *);
Xchar fill(Messenger &);
void pushCharRef(Char ch, const NamedCharRef &);
Boolean rewind(Messenger &);
const StringC *contents();
InternalInputSource *InternalInputSource::asInternalInputSource();
~InternalInputSource();
private:
InternalInputSource(const InternalInputSource &); // undefined
void operator=(const InternalInputSource &); // undefined
Char *buf_;
const StringC *contents_;
};

#ifdef SP_NAMESPACE
}
#endif

#endif /* not InternalInputSource_INCLUDED */
~

Since I am not knowing C++ I can not understand why the code is bad

This is the actual line that produced the errors

InternalInputSource *InternalInputSource::asInternalInputSource();

Can any one help me to understand this error?

Thank you
Back to top
Ulrich Eckhardt
Guest






PostPosted: Wed Nov 12, 2008 8:11 am    Post subject: Re: error compiling opensp Reply with quote

Gang Greene wrote:
Quote:
In file included from ArcEngine.cxx:20:
../include/InternalInputSource.h:37: error: extra
qualification 'OpenSP::InternalInputSource::' on
member 'asInternalInputSource'
[..]
class SP_API InternalInputSource : public InputSource {
[..]
InternalInputSource *InternalInputSource::asInternalInputSource();
^^^^^^^^^^^^^^^^^^^^^

Remove that and file a bug report upstream.

Uli
Back to top
David Schwartz
Guest






PostPosted: Thu Nov 13, 2008 1:54 am    Post subject: Re: error compiling opensp Reply with quote

On Nov 11, 10:24 pm, Ulrich Eckhardt <dooms...@knuut.de> wrote:
Quote:
Gang Greene wrote:
In file included from ArcEngine.cxx:20:
../include/InternalInputSource.h:37: error: extra
qualification 'OpenSP::InternalInputSource::' on
member 'asInternalInputSource'
[..]
class SP_API InternalInputSource : public InputSource {
[..]
  InternalInputSource *InternalInputSource::asInternalInputSource();

                         ^^^^^^^^^^^^^^^^^^^^^
Remove that and file a bug report upstream.

Uli

In case it wasn't readable, the part to remove is the
'InternalInputSource::' after the '*' and before the
'asInternalInputSource();'

DS
Back to top
Gang Greene
Guest






PostPosted: Fri Nov 14, 2008 3:58 am    Post subject: Re: error compiling opensp Reply with quote

David Schwartz wrote:

Quote:
On Nov 11, 10:24 pm, Ulrich Eckhardt <dooms...@knuut.de> wrote:
Gang Greene wrote:
In file included from ArcEngine.cxx:20:
../include/InternalInputSource.h:37: error: extra
qualification 'OpenSP::InternalInputSource::' on
member 'asInternalInputSource'
[..]
class SP_API InternalInputSource : public InputSource {
[..]
InternalInputSource *InternalInputSource::asInternalInputSource();

^^^^^^^^^^^^^^^^^^^^^
Remove that and file a bug report upstream.

Uli

In case it wasn't readable, the part to remove is the
'InternalInputSource::' after the '*' and before the
'asInternalInputSource();'

DS

Thank you both, I am still working with this an hopefully I will have
success.

I have passed this on to the upstream.
Back to top
Display posts from previous:   
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux Development - Applications  
Page 1 of 1
All times are GMT

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum