In my previous post, Creating a basic C/C++ Program to Interact with MySQL and MariaDB, I ran into some errors along the way, so I wanted to share those and their resolutions.
1. fatal error C1083: Cannot open include file: ‘mysql.h’: No such file or directory
mysql1.c mysql1.c(2) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
At this point, my cl command was:
cl /I "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include" mysql1.c
So I needed to include the directory that contained mysql.h as well. So the above changed to:… [Read more...]