Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/06/2014, 13:54
vosk
 
Fecha de Ingreso: agosto-2012
Mensajes: 601
Antigüedad: 11 años, 8 meses
Puntos: 83
Respuesta: problema al compilar c+mysql en windows

"...si alguien me puede ayudar a para poder compiar c+mysql en windows..."

Revisa la pagina de MySQL:

Código C:
Ver original
  1. Compiling MySQL Clients on Microsoft Windows
  2.  
  3. To specify header and library file locations, use the facilities provided by your development environment.
  4.  
  5. On Windows, in your source files, you should include my_global.h before mysql.h:
  6.  
  7. #include <my_global.h>
  8. #include <mysql.h>
  9.  
  10. my_global.h includes any other files needed for Windows compatibility (such as windows.h) if you compile your program on Windows.
  11.  
  12. You can either link your code with the dynamic libmysql.lib library, which is just a wrapper to load in libmysql.dll on demand, or link with the static mysqlclient.lib library.
  13.  
  14. The MySQL client libraries are compiled as threaded libraries, so you should also compile your code to be multi-threaded.

Donde pone *.lib puedes usar *.a segun tengas las librerias estaticas; no tendria que darte problemas.

Espero que te sirva

Saludos
vosk