Skip to content

Commit

Permalink
fix user program linking errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SizzinSeal committed Dec 24, 2024
1 parent a492008 commit d55cdcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
9 changes: 9 additions & 0 deletions src/hot-cold-asset/dummy.cpp
Original file line number Diff line number Diff line change
@@ -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';
}

0 comments on commit d55cdcf

Please sign in to comment.