The code where syntax error seems to be is at the beginning of the main .cpp file as seen below. I have checked code on numberous occasions for syntax errors and even deleted .cpp file and retyped, but still get same error message.
Would be grateful of some assistance. The two function vServerConnection and vClientConnection have not been included in code below but again have rechecked
functions numerous times for syntax errors and could not find any.
When double clicking on syntax error in Visual C++ Compiler
void vServerConnection( int iListenPort ) was highilighted, beginning of source code is included below - Compiler hints of error being in this area.
/* Standard includes */
#include <iostream.h>
#include "SocketObject.h"
void vServerConnection( int iListenPort );
void vClientConnection( char *szServerIP, int iServerListenPort );
/* -------> Main function (REQUIRED) */
int main( int argc, char *argv[] )
It looks like you may have 'use precompiled headers' turned on but have deleted the include for it.
You will have a header called somthing like stdafx.h in your project, either include that as your first include or change your project setting to not use precompiled headers.