1 : for MSVC export .dll and .lib
2 : add std::ios::binary for windows platform, otherwise developer will meet error:
ERROR: C:\source\rtSafe\coreReadArchive.cpp (55) - Serialization Error in nvinfer1::rt::CoreReadArchive::verifyHeader: 0 (Length in header does not match remaining archive length)
ERROR: INVALID_STATE: Unknown exception
ERROR: INVALID_CONFIG: Deserialize the cuda engine failed.
1 : for MSVC export .dll and .lib 2 : add std::ios::binary for windows platform, otherwise developer will meet error: