M
Marty
Hi,
1-I am getting this error and I don't know what does it mean, can
anybody help me with the meaning of this?
error C2850: 'PCH header file' : only allowed at file scope; may not
be in a nested construct
Thank you very much.
Marty
Here is a part of my .h file:
-------------
#ifndef CLS_SOCKET
#define CLS_SOCKET
#endif
#include <string>
#include <winsock2.h>
using namespace std;
class socket
{
public:
socket();
~socket();
void startListening(string *, int);
}
-------------
Here is a part of my .cpp file:
-------------
#include "socket.h"
#ifndef _SOCKET
#define _SOCKET
#endif
socket::socket()
{
int a;
}
socket::~socket()
{
int b;
}
void socket::startListening(string *strIP, int intPort)
{//...
}
-------------
1-I am getting this error and I don't know what does it mean, can
anybody help me with the meaning of this?
error C2850: 'PCH header file' : only allowed at file scope; may not
be in a nested construct
Thank you very much.
Marty
Here is a part of my .h file:
-------------
#ifndef CLS_SOCKET
#define CLS_SOCKET
#endif
#include <string>
#include <winsock2.h>
using namespace std;
class socket
{
public:
socket();
~socket();
void startListening(string *, int);
}
-------------
Here is a part of my .cpp file:
-------------
#include "socket.h"
#ifndef _SOCKET
#define _SOCKET
#endif
socket::socket()
{
int a;
}
socket::~socket()
{
int b;
}
void socket::startListening(string *strIP, int intPort)
{//...
}
-------------