I could tell it wasn’t the code, so I must have left something else out. This was actually a small slew of simple syntax errors. The include files are used by the compiler but the library files are used by the linker to determine where the actual code is. error C2061: syntax error : identifier ‘SOCKET’ I "C:\Program Files\MySQL\MySQL Server 5.5\include" mysql1.cĢ. So the above changed to: cl /I "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include" When I tried to run this code on Visual Studio, I got this error: main.obj : error LNK2019: unresolved external symbol 'double cdecl norminv(double)'. So I needed to include the directory that contained mysql.h as well. Mysql1.c(2) : fatal error C1083: Cannot open include file: 'mysql.h':Īt this point, my cl command was: cl /I "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include" Visual Studio Code places these settings in. When you make changes here, VS Code writes them to a file called ccppproperties.json in the. fatal error C1083: Cannot open include file: ‘mysql.h’: No such file or directory mysql1.c This opens the C/C Configurations page. 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.ġ.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |