Thread: error explicit qualification in declaration???

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    11

    error explicit qualification in declaration???

    Hi
    I know how to write some c code but i didn't really started with c++
    Now i downloaded the source code of a program that does face recognition,....

    and while compiling I ran against a bunch of errors...
    The best way to learn a language is to correct it... although it's easier to say this, than to do this..

    Here it comes.... piece by piece

    Code:
    Libraries/mpisearch/src/ci.cc:44350: error: explicit qualification in declaration of ‘void ci::assignData(FeatureData&)’
    What does it actually mean???
    I can paste the code around these lines or I can give you the whole file, but as you see this is already at line 44350 :-D

    What does it mean explicit qualification in declaration of ....???

  2. #2
    Registered User
    Join Date
    Aug 2009
    Posts
    11
    it's allright I allready found the solution for this one...

    On this site they gave the explanation

    Re: [graphics-dev] gcc 4 : "explicit qualification in declaration" - Bjoern Milcke - org.openoffice.graphics.dev - MarkMail

    Code:
    The errors are related to the new version of gcc which is more strict than the previous versions. Have a look at the following page : http://wiki.services.openoffice.org/wiki/Writing_correct_Cplusplus#Extra_Qualification
    
    So, the code line 298 and 384 have to be changed :
    
    StackMode DataSeriesHelper::getStackModeFromSeries( -> StackMode getStackModeFromSeries(
    I've done the same taking away the ci:: and just left the void assignData(...

  3. #3
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838

  4. #4
    Registered User
    Join Date
    Aug 2009
    Posts
    11
    Quote Originally Posted by m37h0d View Post
    Thanks for the reply, unfortunately i'm not the expert... :-)

    while the last one was explicit qualification of declaration, it's giving me an "extra qualification on member" now...

    I've opened the header file and the .cc file but I don't really know what i got to do now.
    I found a lot of things of "extra qualification on member" but not for this project...

    what does this actually mean???

  5. #5
    Registered User
    Join Date
    Aug 2009
    Posts
    11
    Quote Originally Posted by Tordne View Post
    I found a lot of things of "extra qualification on member" but not for this project...

    what does this actually mean???
    I don't know why, but I tried the same thing as with the explicit qulification...
    to emit the first part with the :: and it seems to work.

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    The best way to learn a language is to correct it
    I cannot in the least agree with this statement, especially not in C++. Compiler error messages are simply not up to guiding you towards the problem. To correct problems in real C++ programs, you need experience writing C++.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  2. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM