diff --git a/shared/java/javacommon.gradle b/shared/java/javacommon.gradle index 32078f8f108..5c961e6abd2 100644 --- a/shared/java/javacommon.gradle +++ b/shared/java/javacommon.gradle @@ -155,7 +155,9 @@ protobuf { generateProtoTasks { all().configureEach { task -> task.builtins { - cpp {} + cpp { + option "dllexport_decl=WPILIB_DLLEXPORT" + } remove java } task.plugins {