package error

UnrealBuildTool: LINK : fatal error LNK1104: �޷����ļ���libmysql.lib��
In my project,i used database of mysql.In editor,it works well.However,it gets wrong when i package it.
It seems that it can not find libmysql.lib.What can i do to solve this?What’s more,if i used some .dll file,How should i do to include the .dll?

The game build statically links dependencies, unlike the editor which just invokes DLLs dynamically.

I don’t know how your integration of MySQL was done, but if you dropped it into your project, you’ll likely need to have this to your game’s Build.cs:


You can search the engine codebase for PublicAdditionalLibraries.Add to find many examples of how it’s used.