/* * (c) Copyright, Real-Time Innovations, 2023. All rights reserved. * RTI grants Licensee a license to use, modify, compile, and create derivative * works of the software solely for use with RTI Connext DDS. Licensee may * redistribute copies of the software provided that all such copies are subject * to this license. The software is provided "as is", with no warranty of any * type, including any warranty for fitness for any purpose. RTI is under no * obligation to maintain or support the software. RTI shall not be liable for * any incidental or consequential damages arising out of the use or inability * to use the software. */ #include #include // This should be first. #include int main(int argc, char *argv[]) { // Retrieve build ID from core libraries: std::string build_id_libs = rti::config::core_build_number(); // Retrieve build ID from header files: std::string build_id_header(RTI_BUILD_NUMBER_STRING); // Compare BUILD IDs: std::cout << "Version Check: "; if (build_id_header != build_id_libs) { std::cout << "FAILED. Version inconsistency detected!" << std::endl; } else { std::cout << "OK. Versions are consistent" << std::endl; } std::cout << "RTI BUILD ID core library: " << build_id_libs << std::endl; std::cout << "RTI BUILD ID header files: " << build_id_header << std::endl; return EXIT_SUCCESS; }