gopy icon indicating copy to clipboard operation
gopy copied to clipboard

unresolved external symbol PyExc_RuntimeError

Open astrelsky opened this issue 4 years ago • 0 comments

Below is the cause of the unresolved symbol. I tried inserting __declspec(dllimport) but clang complains that the assignment to _cgohack_PyExc_RuntimeError is not a constant expression. It seemed to build and link without a problem if I commented the two lines out. I don't understand what the intent is here.

extern char PyExc_RuntimeError[];
void *_cgohack_PyExc_RuntimeError = PyExc_RuntimeError;

astrelsky avatar Nov 22 '21 13:11 astrelsky