--- a/core-tools/src/dgsh-w.c
+++ b/core-tools/src/dgsh-w.c
@@ -10,6 +10,8 @@
 #include "dgsh.h"
 #include "dgsh-debug.h"
 
+#include "s_cpow.c"
+
 void
 read_number(int fd, long double *x, long double complex *xc)
 {
