diff --git a/Makefile b/Makefile index 81735b6..2b4b79f 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ IS_LIBRARY:=1 # Be sure that your header files are in the include directory inside of a folder with the # same name as what you set LIBNAME to below. LIBNAME:=hot-cold-asset -VERSION:=1.0.0 +VERSION:=1.0.1 # EXCLUDE_SRC_FROM_LIB= $(SRCDIR)/unpublishedfile.c # this line excludes opcontrol.c and similar files EXCLUDE_SRC_FROM_LIB+=$(foreach file, $(SRCDIR)/main,$(foreach cext,$(CEXTS),$(file).$(cext)) $(foreach cxxext,$(CXXEXTS),$(file).$(cxxext))) diff --git a/src/hot-cold-asset/dummy.cpp b/src/hot-cold-asset/dummy.cpp new file mode 100644 index 0000000..b91f6e5 --- /dev/null +++ b/src/hot-cold-asset/dummy.cpp @@ -0,0 +1,9 @@ +// PROS does not support templates that don't produce a static binary, +// so we have to force the creation of one in a way that can't cause +// any problems. +// By defining a volatile variable in an anonymous namespace, there +// won't be any funky linking errors if there is a variable with the +// same name in the project. +namespace { +volatile char dummy = 'a'; +}