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

Can't get around error C4800 #27

Closed
JonnyS7G opened this issue Jan 10, 2018 · 2 comments
Closed

Can't get around error C4800 #27

JonnyS7G opened this issue Jan 10, 2018 · 2 comments

Comments

@JonnyS7G
Copy link

I've upgraded to Visual Studio 2017 (version 15.5.2) and still get the compile errors:

\CollisionMeshHandler.cpp(52): error C4800: 'int': forcing value to bool 'true' or 'false' (performance warning)
\CollisionMeshHandler.cpp(246): error C4800: 'int32': forcing value to bool 'true' or 'false' (performance warning)

When trying to correct for the error with "Value != 0", another problem occurs. The build is successful in Visual Studio, but when I go to launch the .uproject, it says it can't find the Voxel.dll and tries to rebuild, but fails. This may be an unreal problem, and not your plugin though. Any info that might help me?

@Phyronnaz
Copy link
Collaborator

The best way to fix the error is to add #pragma warning( disable : 4800 ) at the beginning of the files with errors (wiki was old, just updated it). If VS 2015 is still installed, its compiler will be used even with VS 2017.

Instead of using the .uproject, you can launch unreal from VS with the Local Windows Debugger button.

PS: easier to get support through Discord

@JonnyS7G
Copy link
Author

Thanks! All working now. Will check out the discord.

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