error: '*' does not name a type

Hey guys,

Can anybody help me to compile my Hello World Application.

  
  
#pragma once  
  
#include "ofMain.h"  
#include "ofSphere.h"  
  
  
class testApp : public ofBaseApp{  
  
	public:  
		void setup();  
		void update();  
		void draw();  
  
		void keyPressed  (int key);  
		void keyReleased(int key);  
		void mouseMoved(int x, int y );  
		void mouseDragged(int x, int y, int button);  
		void mousePressed(int x, int y, int button);  
		void mouseReleased(int x, int y, int button);  
		void windowResized(int w, int h);  
		void dragEvent(ofDragInfo dragInfo);  
		void gotMessage(ofMessage msg);  
      
    	ofSphere sphere;  
};  
  

That’s my ofSphere class:

  
  
//  
//  ofSphere.h  
//  draw01  
//  
//  Created by MacBookPro on 10/22/11.  
//  Copyright 2011 __MyCompanyName__. All rights reserved.  
//  
  
#ifndef _OF_SPHERE  
#define _OF_SPHERE  
  
class ofSphere  
{  
    public:  
      
    //metodos  
    void update();  
    void draw();  
    void grow();  
      
    //constructor  
    ofSphere();  
};  
  
#endif  
  

Cheers guys !

There’s already an ofSphere so that’s probably the error you are getting

In general do not use the of prefix for your own classes