You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forgive me if this is a noob question, but I haven't used C++ much in the last 9 or so years so I've forgotten a lot of it's nuances.
I'm trying to include a built version of this library into UE4. I've successfully downloaded and built the library and included it in my UE4 project (which seems to be linking correctly). When building the UE4 files however I get the following errors:
2> [10/15] SerialPlugin.gen.cpp
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(620): error C4522: 'serial::Serial': multiple assignment operators specified
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(640): error C4522: 'serial::SerialExecption': multiple assignment operators specified
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(673): error C4522: 'serial::IOException': multiple assignment operators specified
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(653): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2> C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\string.h(181): note: see declaration of 'strerror'
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(693): error C4522: 'serial::PortNotOpenedException': multiple assignment operators specified
2> [11/15] SerialPlugin.cpp
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(620): error C4522: 'serial::Serial': multiple assignment operators specified
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(640): error C4522: 'serial::SerialExecption': multiple assignment operators specified
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(673): error C4522: 'serial::IOException': multiple assignment operators specified
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(653): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2> C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\string.h(181): note: see declaration of 'strerror'
2>D:\UE4\CPPSerial\Plugins\SerialPlugin\Source\ThirdParty/Serial/serial.h(693): error C4522: 'serial::PortNotOpenedException': multiple assignment operators specified
I don't know what version of gcc UE4 is using (I'm assuming it's using gcc) but I wouldn't be surprised if it was using an old version of the C++ standard. Do I need to compile the library with some different compiler settings to make these errors go away? Or do I need to alter the source files to remove the extra assignment operators?
All input appreciated!
The text was updated successfully, but these errors were encountered:
Hmm, this was originally written against C++03, so I'd be surprised if it is a gcc version issue. That output actually looks like MSVC (not gcc or clang).
Those are warnings, not errors, so maybe you have "warnings as errors" enabled at some level? I'm not even sure this is a warning that should be fixed, but maybe I can investigate it eventually.
Forgive me if this is a noob question, but I haven't used C++ much in the last 9 or so years so I've forgotten a lot of it's nuances.
I'm trying to include a built version of this library into UE4. I've successfully downloaded and built the library and included it in my UE4 project (which seems to be linking correctly). When building the UE4 files however I get the following errors:
I don't know what version of gcc UE4 is using (I'm assuming it's using gcc) but I wouldn't be surprised if it was using an old version of the C++ standard. Do I need to compile the library with some different compiler settings to make these errors go away? Or do I need to alter the source files to remove the extra assignment operators?
All input appreciated!
The text was updated successfully, but these errors were encountered: