  | |  | 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 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.
|
|
 |