Syntax Error : Missing ';' before 'PCH Creation Point'

Be grateful of some assistance.

I have been trying to compile source code in Visual C++ 6.0 and I keep getting
the following error message :

Syntax Error : Missing ';' before 'PCH Creation Point'
Error executing cl.exe
.

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[] )



Again be grateful for any assistance.

Patrick

#include "SocketObject.h"
If "SocketObject.h" file have correct functions and correct header file's path?

closed account (z05DSL3A)
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.
Thanks for your help and advice.

It seems to be compiling okay now, I hadn't put a semi colon at the end of the SocketObject class, in the SocketObject.h header file.

Once I inserted the semi-colon at the end of the class it compiled.

Thanks again for your advice.
Topic archived. No new replies allowed.