C program, libmysql, Windows and Visual C++ 2010 Express
Posted by: Peter Ross
Date: May 10, 2011 08:13PM

Hi,

I would like to know how to compile a .c file using libmysql. It always complaints about errors in mysql.h starting here:

1>c:\program files\mysql\mysql server 5.5\include\mysql_com.h(287): error C2061: syntax error : identifier 'SOCKET'

I do not know whether it is because I need to set some DEFINEs (I am not familiar with the C header structures under Windows)?

I have a C wrapper around some MySQL functions so it becomes usable for a COBOL compiler under Windows.

The C wrapper compiles and works with OpenCOBOL under Linux.

Given that MySQL comes under Windows with C libraries and headers, there must be a way of getting a C program [not C++] compiled?

Thanks for any help
Peter

Options: ReplyQuote


Subject
Views
Written By
Posted
C program, libmysql, Windows and Visual C++ 2010 Express
1284
May 10, 2011 08:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.