Hi! Please post your full compile log next time. "'SOCKET' is used as a" is not a very detailed information :) Maybe set -fmessage-length=0 as a general compiler option so that the errors and warnings don't get cutted.
Judging from the errors I'd say that it's a problem how my_socket was defined. Under Windows where _WIN32 is defined it is SOCKET. This seems to cause an error when using with wxWindows. I tried the following and it seems to work: 1. Open mysql.h 2. Find line 49 (#ifdef __WIN__) 3. Change it to #if (defined(__WIN__) && !defined(__GNUWIN32__)) 4. See that __GUNWIN32__ is defined in your compiler options (-D__GNUWIN32__) 5. link to libmysql.a as usual.
As I said I ran some simple test (init - connect - error message - else close connection) and it seems to work. This is surely not the best way to do it. I'm open to any suggestions (maybe using namespaces would be better?).
upcaseupCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |