Monthly Archives: January 2012

gcc build error: undefined _Unwind_Ptr

I have tried on build both gcc-4.6.2 and gcc-4.6.1 and failed.  Here is the error: In file included from ../../.././libgcc/../gcc/unwind-dw2.c:35:0: ../../.././libgcc/../gcc/unwind-pe.h:101:1: error: unknown type name ‘_Unwind_Ptr’ Solution: rename the first unwind.h to another name and there should be another unwind.h … Continue reading

Posted in Info Tech, programming | 1 Comment

Passing class member function as argument

Here is one example: Declaration: class CDifferentialFFT : public CDifferential {   …   double benchmark(void (CDifferential::*) (float*, float*, int), float* p, float* pz);   … } Implementation: double CDifferentialFFT::benchmark(void (CDifferential::*func) (float*, float*, int), float* p, float* pz) {   … … Continue reading

Posted in programming | Tagged , | Leave a comment