MySQL C++ connector one error

Hello everybody,
I try to connect my C++ file to MySQL.
I did everything as in MySQL connecter instructions but have only one error:

LNK1104 Cannot open file "mysqlcppconn-static.lib"

What I did:

In Property -> linker -> General, in the additional Library Directories text field I added the lib/ directory of the installed Connector/C++.

In Property -> linker -> input, I pasted mysqlcppconn-static.lib into the Additional Dependencies.

Could you know how to fix it?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdlib.h>
#include <iostream>
#include <string>

#include "mysql_connection.h"

#include <cppconn/driver.h>
#include <cppconn/exeption.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>

using namespace std;

int main(void)
{}
Topic archived. No new replies allowed.