Skip to content

Commit be46a7a

Browse files
committed
Fix duplicate symbol error by making error_message static
Use internal linkage for error_message to avoid linker collision when both OpenAttributeGraph and OpenRenderBox are linked together.
1 parent 581a38f commit be46a7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/OpenAttributeGraphCxx/Misc/assert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <stdio.h>
1010
#include <stdlib.h>
1111

12-
char* error_message = nullptr;
12+
static char* error_message = nullptr;
1313

1414
namespace OAG {
1515
void precondition_failure(const char *format, ...) {

0 commit comments

Comments
 (0)