C MySQL错误“严重错误LNK1107:无效或损坏的文件:无法在0x368处读取" [英] C MySQL error "fatal error LNK1107: invalid or corrupt file: cannot read at 0x368"

查看:101
本文介绍了C MySQL错误“严重错误LNK1107:无效或损坏的文件:无法在0x368处读取"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想解释一下我是基于Web的编程语言的新手,所以这对我来说真的是全新的.但我整夜都在努力解决这个问题,似乎无法解决.

first off i'd like to start by explaining i am new to none web based programing languages, so this is really all new to me. But ive been trying to solve this problem all night and cant seem to get it.

所以我刚刚安装了一堆MySQL库.我创建了所有库的链接,自从这样做以来,这个错误消息一直在弹出,我对此进行了一些研究,因为我正在使用动态库,因此似乎出现了sarah消息.但是我绝对不知道该如何解决该问题.我还必须指出,即使我目前使用C语言,也正在使用Microsoft Visual C ++ 2010编译器和Ide代码块.任何人都能给我的任何帮助,我们将不胜感激.谢谢.

so I just installed a bunch of MySQL libraries. I create links to all the libraries and since I have done that, this error message has been popping up.I did a little bit of research on it, and it appears that the sarah message is happening because I'm using the dynamic library.but I have absolutely no idea how to go 5about fixing it.also I must point out that I am using it the Microsoft Visual C++ 2010 compilerand the code blocks Ide, even though I am currently working in the C language. any help anyone can give me is greatly appreciated. Thank you.

也不确定是否有帮助,但这是我的代码.

Also not sure if it helps but heres my code.

#include <my_global.h>
#include <mysql.h>

int main(int argc, char **argv)
{
  printf("MySQL client version: %s\n", mysql_get_client_info());

  return 0;
}

推荐答案

这可能对您有所帮助

This might help you http://www.chriscalender.com/?tag=libmysql-dll-fatal-error-lnk1107-invalid-or-corrupt-file I think.

问题是尝试使用.dll而不是.lib,因此将libmysql.dll替换为libmysql.lib."

"The problem is trying to use the .dll instead of the .lib, so replace libmysql.dll with libmysql.lib."

尝试一下.

这篇关于C MySQL错误“严重错误LNK1107:无效或损坏的文件:无法在0x368处读取"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆