PDA

View Full Version : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory


Randymarsh9
11-08-2009, 12:46 PM
I am trying to compile the source, but I keep getting the error fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory. What is the fix for this?

leslamarch
11-08-2009, 07:09 PM
If you look at this Guide (http://www.eqemulator.net/wiki/wikka.php?wakka=VS2008), It looks like you failed on step 5.
5) Update your Microsoft Visual C+(+) 2008 Express Edition directories:
'Tools/Options/Projects and Solutions/VC+(+) directories'
and add the following directories using the dropdown "Show directories for" box:

Include files: C:\mysql\include
Include files: C:\perl\lib\CORE
Include files: C:\zlib\include
Library files: C:\mysql\lib\opt
Library files: C:\perl\lib\CORE
Library files: C:\zlib\libI would double check to make sure you have these done right.

Randymarsh9
11-08-2009, 07:50 PM
I double checked that and I did have one thing backwards, but that didn't fix it. Actually, instead of 2 succeeding and 3 failing, all 5 failed. There were no 'fatal errors' but I did see this 3>Project : error PRJ0003 : Error spawning 'cmd.exe'. which looks suspicious

leslamarch
11-08-2009, 08:29 PM
see if this helps you (http://www.interact-sw.co.uk/iangblog/2005/09/12/cmdspawnerror), not quite sure let me know.....

Randymarsh9
11-08-2009, 08:56 PM
Yep, I added those 3 paths to the executables and it worked. 5 succeeded. Thanks for the help!

leslamarch
11-08-2009, 09:27 PM
no problem glad you got it going....