0

I tried a lot of solutions on google and baidu but none of them work. I downloaded and installed the 'MySQL.DevPak' file but still got the error 'mysql.h: No such file or directory'. Is there anybody done this before?

1 Answer 1

1

You probably have to declare the package to dev-c++. Look in the project configuration for 'Add an external library' and declare it there. DevC++ needs this to know where to look for 1) the header file, and 2) the actual library. And that is has to link the library into the executable.

Also, you might have to use #include <mysql/mysql.h>. At least in Linux, there's a mysql directory containing the actual mysql.h

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.