Thread: SOCKET Error In mysql.h

  1. #1
    Registered User
    Join Date
    Aug 2004

    SOCKET Error In mysql.h

    This is the error I get when I try compiling my mysql test program. There were no errors in my program, but in the mysql.h header file. Here are the errors:

    File C:\Dev-Cpp\include\MySQL\mysql.h,
    Line 116 'SOCKET' is used as a type, but is not defined as a type.
    Line 180 `SOCKET' was not declared in this scope.
    Line 180 C:\Dev-Cpp\include\MySQL\mysql_com.h syntax error before `,' token.

    Here is the header file line 116 (opened with Dev-C++)

      my_socket fd;					/* For Perl DBI/dbd */
    Here is the header file line 180 (opened with Dec-C++)

    int my_connect(my_socket s, const struct sockaddr *name, unsigned int namelen,
    	       unsigned int timeout);
    The whole header file is too long, so if you need it, I will send it to you. Any help is much appreciated.

  2. #2
    Tha 1 Sick RAT
    Join Date
    Dec 2003
    I have tried and given up with trying to code MySQL programs in Dev C++. I scoured the web for solution ages ago but closest I got was a solution that gave more errors from If you do succeed in getting yours to work, please let me know. I would be very grateful.
    A hundred Elephants can knock down the walls of a fortress... One diseased rat can kill everyone inside

  3. #3
    Registered User
    Join Date
    Aug 2004
    Well, this, I think, isn't the official MySQL++ from (and no I didn't get it from I think this is something like it. None of the header files in the MySQL++ Documentation and Source Examples match the ones that I have. I could be wrong, I don't know.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Non-blocking socket connection problem
    By cbalu in forum Linux Programming
    Replies: 25
    Last Post: 06-03-2009, 02:15 AM
  2. socket programming question, closing sockets...
    By ursula in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-31-2009, 05:17 PM
  3. Socket Help - Multiple Clients
    By project95talon in forum C Programming
    Replies: 5
    Last Post: 11-17-2005, 01:51 AM
  4. when to close a socket
    By Wisefool in forum Networking/Device Communication
    Replies: 5
    Last Post: 11-02-2003, 09:33 AM
  5. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 11:48 AM
Website Security Test