Skip to content

Linker error trying to modify editor module #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cristiangj opened this issue Jul 20, 2021 · 3 comments
Open

Linker error trying to modify editor module #18

cristiangj opened this issue Jul 20, 2021 · 3 comments

Comments

@cristiangj
Copy link

cristiangj commented Jul 20, 2021

Severity Code Description Project File Line Suppression State
Error LNK2005 IMPLEMENT_MODULE_GenericGraphEditor already defined in EdGraph_GenericGraph.cpp.obj

This is because you have the IMPLEMENT_MODULE macro on GenericGraphEditor.h causing a double definition when is imported on the .cpp file. Moving the macro to the end of the .cpp file will resolve this issue.

PD: Also you forgot to add ";" at the end of the macro

@EmilianC
Copy link

+1, this looks like a Unity compilation issue. Once a file is edited and knocked out of the Unity build, it will generate this error.

@ABTWG22
Copy link
Contributor

ABTWG22 commented Jul 12, 2023

I'm going to submit a pull request to fix this issue, I've also just experienced this. Might as well fix it while I'm here.

@ABTWG22
Copy link
Contributor

ABTWG22 commented Jul 12, 2023

Here is the fix #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants