Cant include queue/stack C++ STL classes in Netbeans IDE 7.2

  • From: "kam" < >
  • To:
  • Subject: Cant include queue/stack C++ STL classes in Netbeans IDE 7.2
  • Date: Mon, 20 Aug 2012 14:05:35 -0400

I'm implementing a music project using Netbeans 7.2 IDE in C++ on a Mac Pro 
that involves processing sonic information. I want to use the STL queue and 
stack classes to process chord structures. My problem is that the IDE is not 
recognizing either std::queue or std::stack classes and I'm getting the 
dreaded red exclamation mark next to them. I can't see how I can make further 
progress without these classes (unless I roll my own queue and stack 
routines). Has anyone else had this problem I wonder. Here's my code. Thanks 
in advance..


Code:

#ifndef CHORD_H
#define CHORD_H
#include <stack>
#include<queue>
#include "../tonestatdynlib/name_pitchstructure.h"


class chord {
public:
    chord(int chordNum);
    chord (int chordNum, bool stability);
    chord(const chord& orig); //copy constructor for use in generative   
//procedure
    std::queue<pitchStats> _constituents;
    std::string flatPitchList(); //returns a flat pitchname list from chord 
members

    virtual ~chord();

private:

    int _chordNumber;
    bool _stable;//unless switched otherwise
  };
#endif /* CHORD_H */








Cant include queue/stack C++ STL classes in Netbeans IDE 7.2

kam 08/20/2012

Re: Cant include queue/stack C++ STL classes in Netbeans IDE 7.2

Paulo Panhoto 08/20/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close