Can someone please send me a FULL tutorial on how to use MySQL quries with C++ on Windows 7. And if it uses a MySQL Connector can someone please show/tell me how to link it properly because obviously i'm not doing it right and i'm supposed to be making a login script for my buddy who is making a game in C++. Neither of us know why it's messing up. Neither of us know how to use MySQL with C++ just PHP.

Have you properly linked the SQL libraries? Undefined references are the result of missing dependencies when linking. Since you're using Visual Studio '10, follow these simple instructions to ensure proper library linkage: