Home > Error Cannot > Error Cannot Open Source File Mysql.h

Error Cannot Open Source File Mysql.h


asked 3 years ago viewed 45947 times active 8 months ago Linked 2 fatal error mysql.h:No such file or directory during compilation 0 Install luaSQL on Ubuntu Related 0MySql mysql.h file Thread Tools Display Modes #1 11-08-2009, 12:46 PM Randymarsh9 Dragon Join Date: Dec 2007 Posts: 633 fatal error C1083: Cannot open include file: 'mysql.h': No such file or Converting SCART to VGA/Jack Using DC voltage instead of AC to supply SMPS more hot questions question feed lang-sql about us tour help blog chat data legal privacy policy work here gcc -I/usr/include/mysql ... his comment is here

Physically locating the server Is it plagiarims (or bad practice) to cite reviews instead of source material? So the above changed to: cl /I "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include" /I "C:\Program Files\MySQL\MySQL Server 5.5\include" mysql1.c 2. Does Zootopia have an intentional Breaking Bad reference? Why was Gilderoy Lockhart unable to be cured? http://stackoverflow.com/questions/4290249/mysql-mysql-h-file-not-found-in-vs2008-c-beginner-question

Error Cannot Open Source File Mysql.h

Find all posts by leslamarch « Previous Thread | Next Thread » Thread Tools Show Printable Version Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Posting Rules cl : Command line warning D9024 : unrecognized source file type 'C:\Program Files (x86)\MySQL\mysql-5.5.30-win32\lib\libmysql.dll', object file assumed mysql1.c Microsoft (R) Incremental Linker Version 10.00.30319.01 Copyright (C) Microsoft Corporation. which SHOULD you be?) and such. –Kevin Anderson Apr 18 '12 at 22:11 What is C++ 2010? Find all posts by leslamarch #3 11-08-2009, 07:50 PM Randymarsh9 Dragon Join Date: Dec 2007 Posts: 633 I double checked that and I did have one thing backwards,

otherwise, just do a $ find /usr/ -name 'mysql.h' and put the folder path of your mysql.h with -I flag in your make file. Reply Quote 0 HarrySatt last edited by It seems that you need the 64bit version of MySQL. For Visual Studio you use the 64bit command prompt in the Tools.. Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc.

sub menu to do all the configure and nmake stuff. share|improve this answer answered Dec 17 '13 at 12:42 Waqas 2,2351614 add a comment| up vote 3 down vote For CentOS/RHEL: yum install mysql-devel -y share|improve this answer answered Mar 21 The reason is that I always get the following error message although I refused to build with mysql with removin my -qt-sql-mysql tag from configure. More hints Let me know. [edit, link fixed, koahnig] Reply Quote 0 galaksi101yahoo.co.id last edited by Thank you Mr HarrySatt.

What are the drawbacks of the US making tactical first use of nuclear weapons against terrorist sites? Additionally, you will probably want to set up Library directories to include MySQL's `'lib' folder as well, so that later on your builds can find the mysql libraries to link against. I'm following a tutorial but they dont explain where to get that directory. Reply Quote 0 HarrySatt last edited by Hi.

Navigate:Previous Message•Next Message Options:Reply•Quote Subject Views Written By Posted fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory 6168 hari k 01/03/2012 05:53AM Re: fatal error C1083: asked 6 years ago viewed 23522 times active 3 years ago Visit Chat Linked 0 “unable to include mysql.h” in C program 0 C++ 2010: using #include 2 What's the Error Cannot Open Source File Mysql.h We recommend upgrading to the latest Safari, Google Chrome, or Firefox. If I am fat and unattractive, is it better to opt for a phone interview over a Skype interview?

and my computer is 64. this content HarrySatt last edited by I have a problem to NMAKE QT5.0.0. The linker needs to know where the library files are which has the implementation for the mysql functions that you use. which looks suspicious Randymarsh9 View Public Profile Send a private message to Randymarsh9 Find all posts by Randymarsh9 #4 11-08-2009, 08:29 PM leslamarch Discordant Join Date: Sep 2006

Perhaps related to the recent commit 333b8e5 ? CDawg commented Nov 9, 2012 Just re-used the previous version of mysql_version.h and got it to compile. How to challenge optimized player with Sharpshooter feat Draw an asterisk triangle ¿Muestra la imagen un ejemplo de signo tironiano? http://megavoid.net/error-cannot/error-cannot-open-source-file-mpi-h.html more hot questions question feed lang-cpp about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

Join them; it only takes a minute: Sign up mysql.h file can't be found up vote 15 down vote favorite 8 i'm trying to install connection between c++ and mysql in Already have an account? MrSmite commented Nov 9, 2012 @DDuarte Hmm, I don't think the file is actually missing but rather it's pointing to the wrong place.

You're only ~20MB from finding out. –jball Mar 25 '10 at 15:25 add a comment| up vote 6 down vote For me, on Ubuntu 12.04, I needed to use this include

Is it a fallacy, and if so which, to believe we are special because our existence on Earth seems improbable? here is my code: /* Simple C program that connects to MySQL Database server*/ #include #include main() { MYSQL *conn; MYSQL_RES *res; MYSQL_ROW row; char *server = "localhost"; char Browse other questions tagged c++ or ask your own question. Then on the right hand side, Open the dropbox labeled "Show Directories For" and pick "Include Files".

Browse other questions tagged c++ mysql build or ask your own question. Step by step instructions appreciated. Then, for your linker properties, repeat the steps and include the respective DLL/LIB file path in your Additional Library Directories This will differ greatly depending on your environment, so more information check over here the problem is I am not recompile the source of Qt5Sqld.lib rather than i just use the Qt5Sqld.lib to get dll file.

students who have girlfriends/are married/don't come in weekends...? error LNK2019: unresolved external symbol [email protected] referenced in function _win_init_registry Again, in this case, there were several similar unresolved external errors, so let me post them all: mysqlclient.lib(my_init.obj) : error LNK2019: Why was Kepler's orbit chosen to continue to drift away from Earth? Why don't you connect unused hot and neutral wires to "complete the circuit"?

After download the zip file, create your new blank project. All rights reserved. /out:libmysql.exe "C:\Program Files (x86)\MySQL\mysql-5.5.30-win32\lib\libmysql.dll" mysql1.obj C:\Program Files (x86)\MySQL\mysql-5.5.30-win32\lib\libmysql.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x368 The problem is trying to use the .dll