Quantcast
Viewing all articles
Browse latest Browse all 33

vmd-1.9.4a57 compile error: typedef redefinition with different types ('void' vs 'struct Tcl_Interp') - typedef void Tcl_Interp;

I'm compiling vmd-1.9.4a57 on macos 12 (ventura) but can't get rid of this problem:

Compiling  colvarproxy_vmd.C  -->  colvarproxy_vmd.o  ...clang: warning: argument unused during compilation: '-L/opt/local/lib' [-Wunused-command-line-argument]clang: warning: argument unused during compilation: '-L/usr/local/Cellar/ospray/2.10.0/lib' [-Wunused-command-line-argument]clang: warning: argument unused during compilation: '-L/Users/myuser/vmd-1.9.4a/vmd-plugins/MACOSXX86_64/molfile' [-Wunused-command-line-argument]In file included from colvarproxy_vmd.C:21:In file included from ./colvarscript.h:20:In file included from ./colvarproxy.h:19:./colvarproxy_tcl.h:21:14: error: typedef redefinition with different types ('void' vs 'struct Tcl_Interp')typedef void Tcl_Interp;             ^/opt/local/include/tcl.h:540:1: note: previous definition is hereTcl_Interp;^colvarproxy_vmd.C:52:10: error: use of undeclared identifier 'tcl_run_colvarscript_command'  return tcl_run_colvarscript_command(clientData, interp, objc, objv);         ^2 errors generated.gmake: *** [Makefile:609: colvarproxy_vmd.o] Error 1

In the file colvarproxy_tcl.h there is this piece of code but don't know how can I edit this to get rid of the problem:

#ifdef COLVARS_TCL#include <tcl.h>#else// Allow for placeholders Tcl_Interp* variablestypedef void Tcl_Interp;#endif

(original code is from https://github.com/Colvars/colvars)

Best regards.


Viewing all articles
Browse latest Browse all 33

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>