Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/06/2014, 17:02
Avatar de Italico76
Italico76
 
Fecha de Ingreso: abril-2007
Mensajes: 3.303
Antigüedad: 17 años, 1 mes
Puntos: 292
Respuesta: problema al compilar c+mysql en windows

Compa:

Hola... me dice como le quedo exacto el tema de la inclusion de librerias ? necesito el orden preciso...... me da conflictos entre si:

Cita:
In file included from /usr/include/string.h:12:0,
from /usr/include/w32api/guiddef.h:148,
from /usr/include/w32api/winnt.h:602,
from /usr/include/w32api/minwindef.h:146,
from /usr/include/w32api/windef.h:8,
from /usr/include/w32api/windows.h:69,
from C:\C++\test_mysql.cpp:1:
/usr/include/sys/select.h:31:12: error: declaration of C function 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)' conflicts with
int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
^
In file included from C:\C++\test_mysql.cpp:2:0:
/usr/include/w32api/winsock.h:299:34: error: previous declaration 'int select(int, fd_set*, fd_set*, fd_set*, PTIMEVAL)' here
WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
^
In file included from /usr/include/sys/socket.h:16:0,
from /usr/include/my_global.h:549,
from C:\C++\test_mysql.cpp:3:
/usr/include/cygwin/socket.h:31:8: error: redefinition of 'struct sockaddr'
struct sockaddr {
^
In file included from /usr/include/w32api/winsock.h:37:0,
from C:\C++\test_mysql.cpp:2:
/usr/include/w32api/psdk_inc/_ip_types.h:70:8: error: previous definition of 'struct sockaddr'
struct sockaddr {
^
In file included from /usr/include/sys/socket.h:16:0,
from /usr/include/my_global.h:549,
from C:\C++\test_mysql.cpp:3:
/usr/include/cygwin/socket.h:62:8: error: redefinition of 'struct linger'
struct linger {
^
In file included from /usr/include/w32api/winsock.h:37:0,
from C:\C++\test_mysql.cpp:2:
/usr/include/w32api/psdk_inc/_ip_types.h:63:8: error: previous definition of 'struct linger'
struct linger {
^
In file included from /usr/include/my_global.h:549:0,
from C:\C++\test_mysql.cpp:3:
/usr/include/sys/socket.h:25:56: error: declaration of C function 'int accept(int, sockaddr*, socklen_t*)' conflicts with
int accept (int, struct sockaddr *__peer, socklen_t *);
^
In file included from C:\C++\test_mysql.cpp:2:0:
/usr/include/w32api/winsock.h:277:37: error: previous declaration 'SOCKET accept(SOCKET, sockaddr*, int*)' here
WINSOCK_API_LINKAGE SOCKET WSAAPI accept(SOCKET s,struct sockaddr *addr,int *addrlen);
^
In file included from /usr/include/my_global.h:549:0,
from C:\C++\test_mysql.cpp:3:
/usr/include/sys/socket.h:27:71: error: declaration of C function 'int bind(int, const sockaddr*, socklen_t)' conflicts with
int bind (int, const struct sockaddr *__my_addr, socklen_t __addrlen);
^
.........


[Finished in 0.7s with exit code 1]
Por cierto... finalmente le toco compilar el conector ? usa el de C o el de C++ ? con que compilador lo compilo ?
__________________
Salu2!