Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
MySQL++ - Programming with the C++ API to MySQL
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
libmysql.dll : fatal error LNK1136: invalid or corrupt file

libmysql.dll : fatal error LNK1136: invalid or corrupt file

2005-04-24       - By yeo augustine

 Back
Reply:     1     2     3     4     5  

Hi all,

This is my simple source code:

#include <stdio.h>
#include <mysql.h>

#define def_host_name   "localhost"
#define def_user_name   "root"
#define def_password   "passwork"
#define def_db_name   "test"

MYSQL   *conn;

int main(int argc, char *argv[])
{
  printf("Hello, world and Goodbye\n");
}

//END

I have compiled it using:


C:\project\code>cl -c -I "C:\Program Files\MySQL\MySQL
Server 4.1\include" clien
t1.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All
rights reserved.

client1.c


I got the following error while linking the .obj file,
below is the error:

C:\project\code>cl client1.obj -link "C:\Program
Files\MySQL\MySQL Server 4.1\li
b\opt\libmysql.dll"
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All
rights reserved.

Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights
reserved.

/out:client1.exe
"C:\Program Files\MySQL\MySQL Server
4.1\lib\opt\libmysql.dll"
client1.obj
C:\Program Files\MySQL\MySQL Server
4.1\lib\opt\libmysql.dll : fatal error LNK11
36: invalid or corrupt file


Thanks in advance.

By the way anyone can advice on how I can reply to
your replies. I dunno how to reply to this thread.

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe:    http://lists.mysql.com/win32?unsub=mysql@(protected)


Earn $52 per hosting referral at Lunarpages.