Error: TYpe B is incomplete, can anyone help?

I got a "type B is incomplete" error when using studio12 CC to compile the following code on Solaris 9.
Anyone knows what's going on?
#include<set>
class B;
struct b_compare{
bool operator()(B* const &a, B* const &b) const
return strcmp(a->getname(),b->getname())<0;
class B {
char * a;
public:
std::set<B *, b_compare> setb;
char * getname() const {return a;}
main()
Thanks in advance...

An incomplete class type can be used only to declare a pointer to the type. You cannot use a member of a class until the class definition has been seen.
Move the definition of class B to a point ahead of the first use of a B member. It's always possible to do that. For classes that reference members of each other, you might need to define member functions outside the class, after both of the class definitions.
Example: class A;
class B {
public:
    int foo(A*);
    int g();
class A {
    int bar(B*);
    int g();
int A::bar(B* b) { return b->g(); }
int B::foo(A* a) { return a->g(); }

Similar Messages

  • HT4623 I am trying to update to ios6, on my iPad 2 . I get a message saying "error occurred while downloading ios6" can anyone help.?

    I am trying to update to ios6, on my iPad 2 . I get a message saying "error occurred while downloading ios6" can anyone help.?

    Sorry to hear your Adobe experience has been less than stellar.  I'll try to help...
    1.  Photoshop 14.2.1 is now two releases out of date.  You might want to go to your Creative Cloud application and ask it to install Photoshop CC (2014).  Earlier this year Adobe released 2014.0 as a separate install that can live side by side with 14.2.1.  Then just a few days ago they released 2014.1 as an in-place upgrade to 2014.0.
    2.  You may be able to update Camera Raw directly to version 8.6 by a link from this page:
    Keeping Photoshop Up-To-Date
    Best of luck to you.  Please let us know here if these things help.
    -Noel

  • "disc error or software not found". can anyone help me resolve this please??

    Im trying to burn music to my CD but i have a message appearing saying "disc error or softrware not found" can anyone help me?. Ive had a look at the computer settings about the disc drive but everything seems to be up todate with all the latest softwares.

    Hello TinTin1989
    Continue your troubleshooting with the article below to resolve issues with burning a disk within iTunes.
    iTunes for Windows: Optical drive is no longer recognized, or "Disc burner or software not found" alert after install
    http://support.apple.com/kb/ts2308
    Regards,
    -Norm G.

  • When linking the icloud 3.0 software to my 2010 outlook an unepexted error message pops up. Can anyone help?

    When linking the icloud 3.0 software to my 2010 outlook an unepexted error message pops up. Can anyone help?

    Not sure if you are trying to upgrade iCloud storage to make more room for the upgrade, but that won't help you. If you do not have enough room on your device for the upgrade, then you have to delete some things off of your device. You can also try to do the upgrade via iTunes on the computer you sync with. A direct upgrade does not require as much memory as a Wifi upgrade.
    Upgrading iCloud storage only provides more storage for your backups and for your iCloud sync'd items like messages, contacts, etc.
    Until the iCloud Drive is fully functional, iCloud will not help you to increase the memory capacity of your device.
    And, right now, the iCloud servers may just be overloaded with activity.
    Cheers,
    GB

  • HT1926 I cannot download the latest Itunes software, and I am being given the following message. 'The error code is 2324'. Can anyone help???

    I cannot download the latest Itunes software, and I am being given the following message. 'The error code is 2324'. Can anyone help???

    (Apologies for barging in, Steve.)
    I'd also try the fixit from the following Microsoft document:
    Let's try the fixit from the following Microsoft document with that one:
    Fix problems with programs that can't be installed or uninstalled

  • In iWeb I created a hyperlink to a file on my computer. When I publish I get a 404 error for the link.  Can anyone help?

    In iWeb I created a hyperlink to a file on my computer. When I publish I get a 404 error for the link.  Can anyone help?

    How would I check to see if the like works when I enable via the inspector pane
    If you enable hyperlinks when you click on the link link to the pdf file it will open a browser window and display the pdf file.
    I upload the pdf files to the server and link to them as if they were an external web page:
    That's been more reliable for me than linking to the file as Link To: A file and have iWeb upload the pdf file to the serve.

  • TS1363 I am not able to transfer songs/ purchases from my playlist to my ipod...it is saying unknown error occured (-50)??  Can anyone help?

    I am not able to transfer songs/ purchases from my playlist to my ipod...it is saying an unknown error occured (-50)?  Can anyone help??

    Given that you're on XP, we'd better try the following document:
    iTunes displays -50 error message when syncing iPod on Windows XP

  • Error occur right after sync. can anyone help me??

    i used to sync. songs and movies in my way ,
    but, when i added 3 new movies this morning,
    error occurred. it shows /iPod cant be sync. unknown error occurred (13019)
    what happened?? can anyone help?

    Hello ryanktc,
    And welcome to Apple Discussions!
    Have you had a look at this Apple support document yet? If not, it would be a good place to start.
    http://support.apple.com/kb/TS2830
    Otherwise, I would recommend just doing a search for this error message in this forum. You will receive a plethora of results with endless potential solutions to this error.
    B-rock

  • Weird "undefined in form" error message: but is defined--can anyone help?

    Here is the <form> code:
    <!---Dynamically generated list of bowling center names--->
    <cfselect class="selectBox" name="regHomeCntr">
    <option selected="selected">Where is your home bowling center?</option>
    <cfloop query="getBowlCenters">
    <option value="#getBowlCenters.ctrName#">#getBowlCenters.ctrName#</option>
    </cfloop>
    the <cfform> passes the above info to template (below) for insertion into DB. Everything processes successfully (as can be seen by the variable table at the top of the web page). Even the name of the bowling center is passed as a variable to the processing page, but CF keeps telling me the variable is undefined although I can see that it has passed the variable to the next page. I thought it was because I had the <CFSELECT> wrong, but the variable is being passed no matter what is selected. I am stumped.
    Here is the code that is crashing:
    <cfquery name="getTournaments" datasource="#dbs#">
        SELECT *
        FROM tournamentFeatures
        WHERE tName = '#URL.tName#'
    </cfquery>
    <table>
    <tr>
    <td><strong>Variable Name</strong></td>
        <td><strong>Value</strong></td>
    </tr>
    <!--- Loops over the URL structure and outputs variable names and associated values --->
    <cfloop collection="#URL#" item="VarName">
    <cfoutput>
    <tr>
    <td>
        #VarName#</td>
        <td> #URL[VarName]#</td>
    </tr>
    </cfoutput>
    </cfloop>
    </table>
    <p></p>
    <table>
    <tr>
    <td><strong>Variable Name</strong></td>
        <td><strong>Value</strong></td>
    </tr>
    <!--- Loops over the FORM structure and outputs variable names and associated values --->
    <cfloop collection="#form#" item="VarName">
    <cfoutput>
    <tr>
    <td>
        #VarName#</td>
        <td> #form[VarName]#</td>
    </tr>
    </cfoutput>
    </cfloop>
    </table>
    <!---Inserts new tournament registration into the registration table--->
    <cflock name="addRegistrationRecord" type="exclusive" timeout="20">
    <cftransaction>
    <cfquery name="insertRegistration" datasource="RBDS">
    INSERT INTO
         tournamentReg
    SET
        tName = #URL.tName#,
         tDate = '#URL.tDate#'
         regDateTime = '#URL.regDateTime#',
         regNumber = '#URL.regNumber#'
         regFName = '#form.regFName#',
         regLName = '#form.regLName#',
         streetAddr = '#form.streetAddr#',
         cityStateZip = '#form.CityStateZip#',
         regPhone = '#form.regPhone#',
         regEmail = '#form.regEmail#',
         lastBook = '#form.lastBook#',
         usbcCard = '#form.usbcCard#',
            <cfif tName EQ #URL.tname# AND 'doubles' IS 'yes'>
              bowlWith2 = '#form.bowlWith2#',
            <cfelseif tName EQ #URL.tname# AND 'threePerTeam' is 'yes'>
              bowlWith3 = '#form.bowlWith3#',
            <cfelseif tName EQ #URL.tname# AND 'fourPerTeam' IS 'yes'>
              bowlWith4 = '#form.bowlWith4#',
            <cfelseif tName EQ #URL.tname# AND 'fivePerTeam' IS 'yes'>
              bowlWith5 = '#form.bowlWith5#',
            <cfelse>
              singlesTournament = '#form.singlesTournament#'
            </cfif>
              regHomeCntr = '#form.ctrName#'      (CRASHES HERE)
    WHERE
         tName = '#URL.tName#' AND tDate = '#URL.tDate#'
    </cfquery>
    Try the code for yourself on a live site to see what I mean.
    Go here first: http://www.renobowls.com/tournaments.cfm, then click on the button to the right of Test 2. You don't have to fill in any of the text areas but select one of the Bowling Centers from the drop down box. Then click "Register Me." You will see all the variables passed by the form at the top of the page...INCLUDING the Bowling Center you just selected from the drop down box on the previous page. How can it be passing the variable yet the query (insertRegistration) states it is not defined!!! UHGRRRR...

    Well...hmmm. This is a new one on me. Used to be so easy. What happened? I made the necessary changes but I am getting a totally new error message. I have checked the number of query fields against DB...all checks. Did the same in my queries (unless I am missing something). It states that I have a syntax error. Where? What? I cannot for the life of me see it. But then again we know how that works...looking at the same code all day. Here is what I start with:
    <cfquery name="addRegistration" datasource="RBDS">
    INSERT INTO
    tournamentReg
            (tDate, tName, regDateTime, regNumber, regFName, regLName, streetAddr, cityStateZip,
            regPhone, regEmail, lastBook, usbcCard, regNotify, regReturn, regMembership,
            regLeague, ctrName,
            <cfif tName EQ #URL.tName# AND 'doubles' IS 'yes'>
            BowlerTwoName, BowlerTwoBook,
            <cfelseif tName EQ #URL.tname# AND 'threePerTeam' is 'yes'>
            BowlerTwoName, BowlerTwoBook,
            BowlerThreeName, BowlerThreeBook,
            <cfelseif tName EQ #URL.tname# AND 'fourPerTeam' IS 'yes'>
            BowlerTwoName, BowlerTwoBook,
            BowlerThreeName, BowlerThreeBook,       
            BowlerFourName, BowlerFourBook,
            <cfelseif tName EQ #URL.tname# AND 'fivePerTeam' IS 'yes'>
            BowlerTwoName, BowlerTwoBook,
            BowlerThreeName, BowlerThreeBook,       
            BowlerFourName, BowlerFourBook,
            BowlerFiveName, BowlerFiveBook)
            <cfelse>
            singles,  )
      </cfif>
        VALUES
                <cfif tName EQ #URL.tname# AND 'doubles' IS 'yes'>
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
                <cfelseif tName EQ #URL.tname# AND 'threePerTeam' is 'yes'>
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeBook#">,
                <cfelseif tName EQ #URL.tname# AND 'fourPerTeam' IS 'yes'>
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourBook#">,
                <cfelseif tName EQ #URL.tname# AND 'fivePerTeam' IS 'yes'>
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFiveName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFiveBook#">,
                <cfelse>
                  <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.singles#">,
                </cfif>
            <cfqueryparam cfsqltype="CF_SQL_DATE" value="#URL.tdate#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#URL.tname#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#URL.regDateTime#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#URL.regNumber#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regFName#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regLName#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.streetAddr#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.cityStateZip#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regPhone#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regEmail#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.lastBook#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.usbcCard#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regNotify#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regReturn#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regMembership#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regLeague#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.ctrName#">
    </cfquery>
    Here is what I get:
    Variable Name
    Value
    TNAME
    Teusday
    REGNUMBER
    5219531
    TDATE
    3/13/10
    REGDATETIME
    02/16/10 - 7:58:00 PM
    Variable Name
    Value
    CTRNAME
    Gold Dust West Bowling Center
    REGPHONE
    813-0850
    REGNOTIFY
    Yes
    REGEMAIL
    [email protected]
    REGRETURN
    Yes
    USBCCARD
    8130-5042
    REGLEAGUE
    No
    LASTBOOK
    191
    REGFNAME
    Rick
    CITYSTATEZIP
    Reno, NV 89523
    REGISTER
    Register Me
    SINGLES
    yes
    REGNUMBER
    9503574
    REGMESSAGE
    test 7:45PM
    FIELDNAMES
    REGNUMBER,REGDATETIME,REGFNAME,REGLNAME,REGPHONE,REGEMAIL,CTRNAME,USBCCARD,LASTBOOK,STREET ADDR,CITYSTATEZIP,SINGLES,REGNOTIFY,REGRETURN,REGMEMBERSHIP,REGLEAGUE,REGMESSAGE,REGISTER
    STREETADDR
    105 N. McCarran Blvd.
    REGLNAME
    Rossiter
    REGMEMBERSHIP
    No
    REGDATETIME
    02/16/10 - 7:44:48 PM
    Error Occurred While Processing Request
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
    The error occurred in C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 323
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 218
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 217
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 1
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 323
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 218
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 217
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 1
    321 :             <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regMembership#">,
    322 :             <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regLeague#">,
    323 :             <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.ctrName#">
    324 :   )
    325 : 
    SQL
       INSERT INTO tournamentReg (tDate, tName, regDateTime, regNumber, regFName, regLName, streetAddr, cityStateZip, regPhone, regEmail, lastBook, usbcCard, regNotify, regReturn, regMembership, regLeague, ctrName, singles, ) VALUES ( (param 1) , (param 2) , (param 3) , (param 4) , (param 5) , (param 6) , (param 7) , (param 8) , (param 9) , (param 10) , (param 11) , (param 12) , (param 13) , (param 14) , (param 15) , (param 16) , (param 17) , (param 18) )
    DATASOURCE
      RBDS
    VENDORERRORCODE
      -3502
    SQLSTATE
      42000

  • Error -5000 Insufficient Access Privileges - Can anyone help?

    Hi, I have been using logic since version 4.1 and have never had this problem. About 50% of the files I import or audio I record have problems when using the Audio editor in logic.. I can't do simple things like Normalize, Fade in/out/, Gain, Time & Pitch etc... All i keep getting back is 'Error -5000 Insufficient Access Privileges For Operation'. I've checked the files are on read & write however I cannot figure out why it will not let me do anything to the audio.. Any advice appreciated! Kai P.S I've updated to the latest Version of Logic Pro 7.2

    You should run "repair permissions" for your hard drives.
    Check the Apple Help manual on exactly how to do this,it's not hard to do.
    This is not a Logic Issue,but a file management issue...Access privileges is a term to describe what access level you have on each file on your computer.If you don't have write access,you cannot edit the file.
    I hope this helps,
    noeqplease

  • Error with iTunes download. Can anyone help?

    I tried installing the latest version of itunes and after being told that it had successfully installed, I tried to run the program and was greeted with the following message from itunes:
    "Entry point not found. The procedure entry point could not be located in the dynamic link library CoreMedia. dll"
    I clicked 'ok' and got another error message which said:
    "itunes was not installed correctly. Please re-install itunes. Error 7 (Windows error 127)"
    I have tried un-installing and re-installing a few times as well as trying to download in a Firefox browser rather than internet explorer. No luck.
    Any suggestions? Thanks!

    http://go.microsoft.com/?linkid=9662461
    This worked for me.  Dont know why, but I found it in another thread....

  • I get an error mesage -50 everytime I try to sync my IPad and PC. Can anyone help me solve this problem?

    Everytime I try to sync my Ipad with my PC I get an unknown error message number -50? Can anyone help me?

    this may be related: http://support.apple.com/kb/ts1539

  • I have recently upgraded to Yosemite and when launching PS I get error message 150:30.  Can anyone tell me what this means?

    I have recently upgraded to Yosemite and when trying to launch PS I get an error message 150:30.  Can anyone help me out with this please?

    Yes. The upgrade broke your CS4 install. You have to reinstall.
    Easiest way to fix this is to download the installer Download CS4 products and have your serial number at the ready.
    Then you will need to download and install the updates for Photoshop, Camera Raw, and Bridge here: Product updates
    There is a Terminal fix, but you have to be familiar with Terminal and running the python license Repair script. You will need the bash shell on your user account. If that makes sense to you, we can try that.
    Gene

  • TS3367 FaceTime activation problem; can anyone help?

    Hey guys, i have been trying to activate my FaceTime and iMessage on my iphone 4. However, after entering my apple ID and password, I keep getting the 'waiting for activation' message, followed by 'error occurred while activating'. Can anyone help?

    http://support.apple.com/kb/TS4268

  • Can anyone help me with downloading Creative MediaSource in Windows Vis

    I've tried over and over to download Creative MediaSource through the Windows Vista application section for the Zen Touch. It continuosly gives me this error during file extracting. Can anyone help me with this?!

    Hi 
       I have checked to see if there are any Windows 8-8.1 drivers available for your model machine from HP and sadly none are listed , Also even if it had been possible to get driver support for the upgrade you would have still had to pay Microsoft for the upgrade via Retail disk package or an online ISO download .
                         Kind Regards 
                            Checkurtech
    ****Click the White Kudos star to say thanks****
    ****Please mark Accept As Solution if it solves your problem****

Maybe you are looking for

  • Core dump installing 8.1.7 on RH 6.2

    The installation process fails trying to link the oracle executable (core dump). Have anybody suffered the same problem? any walkaround? 8.1.6 is running without problems in the same box. Thanks, Osvaldo.

  • I get no signal when i connect my latop and tv or other output device through my HDMI cable

    no matter what i try i can never get my laptop to display anything through my hdmi. every time i connect it it tell me  "no signal".ive used the duplicate seting and tried different things but still nothing

  • Printing on Dot Matrix Printer

    Hi I am using JPS for printing, but to print on dot matrix printer, conventionally you print character at perticular row & col. Using Java Print Services how can I print a report to Dot Matrix Printer. Thanks in Advance

  • Getting NoClassDefFoundError

    Hi, I am getting NoClassDefFoundError when I am trying to run the java file (with package name) from a batch file. This happens only when I have kept the file in the directory having SPACE in its name. sample code is as follows - java -classpath %CLA

  • Which webstart version is starting my app ?? [confused...]

    I'm a bit confused, but maybe someone can help me out. This is the situation: -> Installed on my Windows machine: * JRE 1.5.0 (of JDK, that's the same) * also a JRE 1.4.2_07 * a firewall * IE or firefox browser (with mime-type "application/x-javajnlp