diff --git a/libopenfpga/libopenfpgautil/src/openfpga_decode.h b/libopenfpga/libopenfpgautil/src/openfpga_decode.h index ab6778c86..85809fee2 100644 --- a/libopenfpga/libopenfpgautil/src/openfpga_decode.h +++ b/libopenfpga/libopenfpgautil/src/openfpga_decode.h @@ -4,6 +4,7 @@ /******************************************************************** * Include header files that are required by function declaration *******************************************************************/ +#include #include /******************************************************************** diff --git a/libopenfpga/libopenfpgautil/src/openfpga_scale.cpp b/libopenfpga/libopenfpgautil/src/openfpga_scale.cpp index 9baa753d1..66364501d 100644 --- a/libopenfpga/libopenfpgautil/src/openfpga_scale.cpp +++ b/libopenfpga/libopenfpgautil/src/openfpga_scale.cpp @@ -140,7 +140,7 @@ float string_to_unit(const std::string& scale) { /* Invalid unit report error */ VTR_LOGF_ERROR(__FILE__, __LINE__, "Invalid unit %s!\nAcceptable units are [a|f|p|n|u|k|M|B|T] or empty\n", - scale); + scale.c_str()); exit(1); } @@ -153,13 +153,13 @@ float string_to_time_unit(const std::string& scale) { && (2 != scale.length()) ) { VTR_LOGF_ERROR(__FILE__, __LINE__, "Time unit (='%s') must contain only one or two characters!\n", - scale); + scale.c_str()); } /* The last character must be 's' */ if ('s' != scale.back()) { VTR_LOGF_ERROR(__FILE__, __LINE__, "Time unit (='%s') must end with 's'!\n", - scale); + scale.c_str()); } float unit = 1.; diff --git a/openfpga/src/base/io_location_map.h b/openfpga/src/base/io_location_map.h index de6422d23..ef326a66a 100644 --- a/openfpga/src/base/io_location_map.h +++ b/openfpga/src/base/io_location_map.h @@ -4,6 +4,7 @@ /******************************************************************** * Include header files required by the data structure definition *******************************************************************/ +#include #include /* Begin namespace openfpga */