Skip to content
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

[UE 5.5.4] Generated <Project>.DI.gen.cpp causes compilation errors of the plugin. #3

Closed
Zly-u opened this issue Mar 16, 2025 · 5 comments

Comments

@Zly-u
Copy link

Zly-u commented Mar 16, 2025

I assume it's due to the #include "DI/Impl/ExposeDependencies.h", I did test if that was the cause.

[10/14] Compile [x64] Phasm.DI.gen.cpp
11>DependenciesRegistry.h(53): Error C7568 : argument list missing after assumed function template 'TWeakObjectPtr'
11>DependenciesRegistry.h(53): Error C2976 : 'TMap': too few template arguments
11>Map.h(1227): Reference C2976 : see declaration of 'TMap'
11>DependenciesRegistry.h(53): Error C2955 : 'TMap': use of class template requires template argument list
11>Map.h(1227): Reference C2955 : see declaration of 'TMap'
11>DependenciesRegistry.h(53): Error C2512 : 'TMap': no appropriate default constructor available
11>Map.h(1227): Reference C2512 : see declaration of 'TMap'
11>DependenciesRegistry.h(54): Error C2512 : 'FDelegateHandle': no appropriate default constructor available
11>GenericPlatformMisc.h(20): Reference C2512 : see declaration of 'FDelegateHandle'
@Zly-u Zly-u changed the title Generated <Project>.DI.gen.cpp causes compilation errors of the plugin. [UE 5.5.3] Generated <Project>.DI.gen.cpp causes compilation errors of the plugin. Mar 16, 2025
@Zly-u Zly-u changed the title [UE 5.5.3] Generated <Project>.DI.gen.cpp causes compilation errors of the plugin. [UE 5.5.4] Generated <Project>.DI.gen.cpp causes compilation errors of the plugin. Mar 16, 2025
@druhasu
Copy link
Owner

druhasu commented Mar 16, 2025

I'll install 5.5.4 and look what's wrong there

@druhasu
Copy link
Owner

druhasu commented Mar 16, 2025

I cannot reproduce the issue in my project.

Could you please provide additional info:

  • Version of UnrealDI plugin
  • Your Build.cs file
  • Your Target.cs file

@Zly-u
Copy link
Author

Zly-u commented Mar 17, 2025

Alright, I just have double-checked my Build.cs file and tried removing PCHUsage = PCHUsageMode.NoPCHs;, and that fixed the issue...
Used to run the project just fine until I tried to use the plugin, idk what's up with that.

@druhasu
Copy link
Owner

druhasu commented Mar 17, 2025

That's a valuable piece of info about PCHUsage = PCHUsageMode.NoPCHs;. I tried to build with this setting, but got a lot more errors rather than just the one you mentioned. I'll add support for this case soon.

@druhasu
Copy link
Owner

druhasu commented Mar 17, 2025

Fixed in version 3.2.5

@druhasu druhasu closed this as completed Mar 17, 2025
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

2 participants