November 5th, 2012, 03:47 PM
C++ module build: undefined symbol
I'm writing a Python C++ module to run C++ code from within my Python code.
In my module C++ file, I #include<myClass.h> and use the functions defined in myClass. When I build the module I get the following error:
Is it not enough to include the header file of the type I'm going to be using in my C++ module file. I'm not going to be calling any of these functions from my Python code so I don't see the need to add these functions to the methods table.
ImportError: .../cdtm_ext.so: undefined symbol: _ZN6corpus9read_dataEPc
How can I include C++ GSL (Gnu Scientific Library) in this file also?
Last edited by welshamy; November 5th, 2012 at 04:36 PM.
Reason: Added question about including GSL