Cannot find -llibmysqld Collect2.exe: error: ld returned 1 exit status
Solved
General and Desktop
-
You're trying to link libmysqld, the debug version of libmysql, but MySQL Connector C don't have that.
And from your output, it looks like you're not linking from MySQL Connector C, but MySQL Server 8.0.
What do you write for LIBS in the .pro file?
And what .libs are inC:\Program Files\MySQL\MySQL Server 8.0\lib
?
Also, why are you linking libmysql? If you are using the mysql plugin of Qt sql drivers, there's no need to do that.