Welcome to devpaks repository

libmysql

Library version 5.0.5
Devpak version 1sid
Packager frantisek.sidak
dev at sidak dot net
Homepage
Last modified 2005-11-23 13:59:54
Description C MySQL client dynamic library. Link the library by -lmysql parameter.
Library homepage
Library manpage
Depends on
Download
Category Database

You can register yourself to be notified of the changes to this devpak if you log in.

Solucion error linker by guest 2010-04-04 19:13:42 Reply
Cuando te salga el error del linker agrega en opciones del proyecto en lineas la direccion donde esta libmysql.a
C:/Dev-Cpp/include/mysql/mysql_com.h:155: error: `SOCKET' does not name a type by guest 2008-05-29 19:48:35 Reply
//el error es omitir el archivo windows.h
#include<iostream>
#include <windows.h>
#include <mysql/mysql.h>
#include <mysql/mysqld_error.h>
#include <cstring>
#include <cstdio>
using namespace std;
int main()
{
// Variables
MYSQL *myData;


// Intentar iniciar MySQL:
if(!(myData = mysql_init(0))) {
// Imposible crear el objeto myData
cout << "ERROR: imposible crear el objeto myData." << endl;
rewind(stdin);

return 1;
}
system("pause");
return 0;
}
Linker error by guest 2008-01-21 04:24:58 Reply
this is the error

Compiler: Default compiler
Building Makefile: "D:\Dev-Cpp\workspace\bio\Makefile.win"
Executing make clean
rm -f basic.o gp.o input.o ligand.o logp.o main.o misc.o molecule.o my_score_tool.o mysql.o parameter.o population.o protein.o score.o totor-source.o utilities.o bio.exe

g++.exe -c basic.c -o basic.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c gp.c -o gp.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c input.c -o input.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c ligand.c -o ligand.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c logp.c -o logp.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c main.cpp -o main.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c misc.c -o misc.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c molecule.c -o molecule.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c my_score_tool.c -o my_score_tool.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c mysql.c -o mysql.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c parameter.c -o parameter.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c population.c -o population.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c protein.c -o protein.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c score.c -o score.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c totor-source.c -o totor-source.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe -c utilities.c -o utilities.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include" -pg

g++.exe basic.o gp.o input.o ligand.o logp.o main.o misc.o molecule.o my_score_tool.o mysql.o parameter.o population.o protein.o score.o totor-source.o utilities.o -o "bio.exe" -L"D:/Dev-Cpp/lib" -lgmon -pg

mysql.o(.text+0x141):mysql.c: undefined reference to `mysql_server_init@12'
mysql.o(.text+0x150):mysql.c: undefined reference to `mysql_init@4'
mysql.o(.text+0x171):mysql.c: undefined reference to `mysql_options@12'
mysql.o(.text+0x18f):mysql.c: undefined reference to `mysql_options@12'
mysql.o(.text+0x3e6):mysql.c: undefined reference to `mysql_real_connect@32'
mysql.o(.text+0x3f8):mysql.c: undefined reference to `mysql_error@4'
mysql.o(.text+0x452):mysql.c: undefined reference to `mysql_query@8'
mysql.o(.text+0x460):mysql.c: undefined reference to `mysql_close@4'
mysql.o(.text+0x468):mysql.c: undefined reference to `mysql_server_end@0'
mysql.o(.text+0xc34):mysql.c: undefined reference to `mysql_server_init@12'
mysql.o(.text+0xc43):mysql.c: undefined reference to `mysql_init@4'
mysql.o(.text+0xc64):mysql.c: undefined reference to `mysql_options@12'
mysql.o(.text+0xc82):mysql.c: undefined reference to `mysql_options@12'
mysql.o(.text+0xcc8):mysql.c: undefined reference to `mysql_real_connect@32'
mysql.o(.text+0xcda):mysql.c: undefined reference to `mysql_error@4'
mysql.o(.text+0x104d):mysql.c: undefined reference to `mysql_query@8'
mysql.o(.text+0x1073):mysql.c: undefined reference to `mysql_close@4'
mysql.o(.text+0x107b):mysql.c: undefined reference to `mysql_server_end@0'
mysql.o(.text+0x10c1):mysql.c: undefined reference to `mysql_server_init@12'
mysql.o(.text+0x10d0):mysql.c: undefined reference to `mysql_init@4'
mysql.o(.text+0x10f1):mysql.c: undefined reference to `mysql_options@12'
mysql.o(.text+0x110f):mysql.c: undefined reference to `mysql_options@12'
mysql.o(.text+0x1397):mysql.c: undefined reference to `mysql_real_connect@32'
mysql.o(.text+0x13a9):mysql.c: undefined reference to `mysql_error@4'
mysql.o(.text+0x1429):mysql.c: undefined reference to `mysql_query@8'

mysql.o(.text+0x1437):mysql.c: undefined reference to `mysql_close@4'
mysql.o(.text+0x143f):mysql.c: undefined reference to `mysql_server_end@0'
mysql.o(.text+0x28b9):mysql.c: undefined reference to `mysql_server_init@12'
mysql.o(.text+0x28c8):mysql.c: undefined reference to `mysql_init@4'
mysql.o(.text+0x28ef):mysql.c: undefined reference to `mysql_options@12'
mysql.o(.text+0x2910):mysql.c: undefined reference to `mysql_options@12'
mysql.o(.text+0x2959):mysql.c: undefined reference to `mysql_real_connect@32'
mysql.o(.text+0x296e):mysql.c: undefined reference to `mysql_error@4'
mysql.o(.text+0x2cdc):mysql.c: undefined reference to `mysql_query@8'
mysql.o(.text+0x2d01):mysql.c: undefined reference to `mysql_close@4'
mysql.o(.text+0x2d09):mysql.c: undefined reference to `mysql_server_end@0'
collect2: ld returned 1 exit status

make.exe: *** [bio.exe] Error 1

Execution terminated
303 C:\Dev-Cpp\include\mysql_com.h expected identifier before '=' token by guest 2007-10-27 10:22:46 Reply
303 C:\Dev-Cpp\include\mysql_com.h expected identifier before '=' token
Error. by guest 2007-10-08 23:35:09 Reply
You need to include windows.h first.
Re: database connectivity by guest 2006-11-16 11:26:51 Reply
Download Mysql5.o win binary and install it.. The installed folder will contain an include directory with mysql.h , just use ur IDE`s Include directory option to point to this folder..
database connectivity by guest 2006-08-28 08:26:20 Reply
where do i get mysql.h header file
Re: Re: error, help me by guest 2006-03-16 09:07:41 Reply
Tnx for tip, i was trying for days to get rid of that "SOCKET does not name a type" error..
Re: error, help me by guest 2006-02-21 20:10:38 Reply
Include "windows.h" before you include "mysql.h".
This should get rid of the errors.
Cheers!
error, help me by guest 2006-01-27 17:06:16 Reply
this is the error

Compilador: Default compiler
Building Makefile: "D:\c++\My SQL\Makefile.win"
Ejecutando make...
make.exe -f "D:\c++\My SQL\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"

In file included from C:/Dev-Cpp/include/mysql/mysql.h:57,
from main.cpp:8:
C:/Dev-Cpp/include/mysql/mysql_com.h:155: error: `SOCKET' does not name a type
C:/Dev-Cpp/include/mysql/mysql_com.h:299: error: `SOCKET' was not declared in this scope
C:/Dev-Cpp/include/mysql/mysql_com.h:299: error: expected primary-expression before "const"
C:/Dev-Cpp/include/mysql/mysql_com.h:299: error: expected primary-expression before "unsigned"
C:/Dev-Cpp/include/mysql/mysql_com.h:300: error: expected primary-expression before "unsigned"
C:/Dev-Cpp/include/mysql/mysql_com.h:300: error: initializer expression list treated as compound expression

make.exe: *** [main.o] Error 1

EjecuciĆ³n Terminada

Sorry, commenting disabled because of spam.