+3 votes


I'm going through the tutorial on setting up a custom module. I have created a custom module and can successfully build it into the Godot binary. However, when I try and build the module as a shared library, I get a lot of unresolved external symbol errors. I am using Visual Studio 2017, and am just copying the code from the "summator" tutorial. Does anyone know what the issue could be?

in Engine by (23 points)

Maybe pasting the error here would help with diagnosing the problem?

1>register_types.windows.tools.32.obj : error LNK2019: unresolved external symbol "void __cdecl _err_print_error(char const *,char const *,int,char const *,enum ErrorHandlerType)" ([email protected]@[email protected]@@Z) referenced in function "public: static void __cdecl ClassDB::register_class(void)" ([email protected]@@@[email protected]@SAXXZ)

1>summator.windows.tools.32.obj : error LNK2001: unresolved external symbol "void __cdecl errprinterror(char const *,char const *,int,char const *,enum ErrorHandlerType)" (?errprint[email protected]@[email protected]@@Z)

There are 51 errors total but they are all either similar to these, LNK2019 or LNK2001, unresolved external symbol, and with one of those 2 object files.

Hi, I have same problem. Have you solved it?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.