title: TCL Segmentation fault when loading a static library
body: <p>I've creating a gRPC client server application in C++. The messages are defined in a protobuf file and the generated code is bundled with my own c++ commands and the gRPC libraries to create a static grpc_lib.a.
  In turn this grpc_lib.a is linked to relevant client and server code to create  both a client and server application. This all works and the code runs.</p>
  <p>Most of my test code is TCL based. Therefore, I created another static library (tcl_grpc.a) consisting of grpc_lib.a and c source code which details the TCL commands.
  This is all standard stuff.
  However, the problem is that I cannot load the tcl_grpc.a library into my TCL shell.
  I constantly get a &quot;segmentation fault&quot;</p>
  <p>Has anyone else come across similar problems when loading libraries into TCL?</p>
  <p>Thanks in advance.</p>