Hi, I've encountered this weird problem. When I compiled the project, it returned this error:
error: expected unqualified-id before 'using'
The weird thing is I didn't do anything to the class where the error occured. Yet the error appeared. I tried to clean build the project but the error is still there.
When I tried to comment the 'using' line, there's another error. But this time it's not the same error. The error was:
error: multiple types in one declaration
The error was inside the bracket of the class (or more accurately the last bracket). Can anybody help me here?
BTW, for the code:
Code:
#include "SDL_mixer.h"
#include <string>
//using namespace std; //The first error occured here
class CMusik
{
public:
unsigned int getHandle();
std::string getNama();
Mix_Music* getData();
CMusik();
CMusik(char* folder, char* file, char* nama, unsigned int handle);
virtual ~CMusik();
void setVolume(int vol);
private:
unsigned int mHandle;
int mStateMusik; //0=stopped;1=paused;2=played
Mix_Music* mDataMusik;
std::string mNamaMusik;
}; //The second error