MySQL Forums
Forum List  »  Sybase

API for C linking problems
Posted by: Mario Rossi
Date: September 14, 2007 07:58AM

Hi,
I'm trying to make a client application in C, connecting to a mySQL database. Platform is: Windows, LCC-32. In the source code I have declarations:

#include <windows.h>
#include "resource.h"
#include <windowsx.h>
#include <mysql.h>
#include <stdio.h>

and test code:

MYSQL * mysql;
mysql = mysql_init(NULL);

using the linker to take the library file:

mysqlclient.lib

And I have an output like this:

Wedit output window build: Fri Sep 14 15:55:14 2007
.data section assumed
...
.data section assumed
File c:\lcc\lib\mysqlclient.lib contains unknown section .sxdata.
.data section assumed
...
.data section assumed
File c:\lcc\lib\mysqlclient.lib contains unknown section .text$yc.
.text section assumed
File c:\lcc\lib\mysqlclient.lib contains unknown section .CRT$XCU.
.data section assumed
...
.data section assumed
File c:\lcc\lib\mysqlclient.lib contains unknown section .sxdata.
File c:\lcc\lib\mysqlclient.lib contains unknown section .text$yc.
.text section assumed
File c:\lcc\lib\mysqlclient.lib contains unknown section .CRT$XCU.
.data section assumed
...
.data section assumed
.data: undefined reference to '??_7type_info@@6B@'
.rdata: undefined reference to '__purecall'
Error c:\lcc\lib\mysqlclient.lib: Undefined (*UND*). Symbol ??_EMessage@yaSSL@@UAEPAXI@Z
c:\lcc\bin\make.exe
Compilation + link time:0.2 sec, Return code: 1

What is happened? How I can resolve this problem?
Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
API for C linking problems
9900
September 14, 2007 07:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.