H
Hakirato
Hi
I have this compilation problem when trying to convert C code to C++.
My function looks like this:
void FTPServer_ThreadLoop( void *arg_p )
{
FTPSettings_t* FTPSettings_p;
FTPSettings_p = arg_p;
...
...
...
}
typedef struct
{
FTPState_t State;
SOCKADDR_STORAGE sa;
SOCKADDRLEN salen;
SOCKET sock;
} FTPSettings_t;
When I compile I have this problem:
error C2440: '=' : cannot convert from 'void *' to 'FTPSettings_t *'
Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
Please help me how to solve this problem. Thanks
I have this compilation problem when trying to convert C code to C++.
My function looks like this:
void FTPServer_ThreadLoop( void *arg_p )
{
FTPSettings_t* FTPSettings_p;
FTPSettings_p = arg_p;
...
...
...
}
typedef struct
{
FTPState_t State;
SOCKADDR_STORAGE sa;
SOCKADDRLEN salen;
SOCKET sock;
} FTPSettings_t;
When I compile I have this problem:
error C2440: '=' : cannot convert from 'void *' to 'FTPSettings_t *'
Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
Please help me how to solve this problem. Thanks