Hi,
I have compiled my cpp code in my matlab sucessfully using "mex" command. The compiler I used in "mex" is Visual C++ 8.0 compiler.
However, when I try to use gcc compiler instead for compile this file for matlab use in Linux environment, the compilation is not successful.
The error message I got is the following. Any hints or explanation would be appreciated. Thank you in advance.
gary
>> mex ldpc_encoder_prepros_c.cpp
ldpc_encoder_prepros_c.o: In function `CLDPCEncoderPreProc::UrbankeCH(int)':
ldpc_encoder_prepros_c.cpp:(.text+0x37d): undefined reference to `CLDPCEncoderPreProc::ColUnkown'
ldpc_encoder_prepros_c.o: In function `CLDPCEncoderPreProc::CLDPCEncoderPreProc(unsigned int, unsigned int, unsigned int, unsigned int, double const*, int const*, int const*, double const*)':
ldpc_encoder_prepros_c.cpp:(.text+0xb14): undefined reference to `CLDPCEncoderPreProc::ColUnkown'
ldpc_encoder_prepros_c.o: In function `CLDPCEncoderPreProc::UrbankeAH(int)':
ldpc_encoder_prepros_c.cpp:(.text+0xf93): undefined reference to `CLDPCEncoderPreProc::ColUnkown'
ldpc_encoder_prepros_c.o: In function `CLDPCEncoderPreProc::UrbankeCHT(int)':
ldpc_encoder_prepros_c.cpp:(.text+0x162e): undefined reference to `CLDPCEncoderPreProc::ColUnkown'
ldpc_encoder_prepros_c.o: In function `CLDPCEncoderPreProc::CLDPCEncoderPreProc(unsigned int, unsigned int, unsigned int, unsigned int, double const*, int const*, int const*, double const*)':
ldpc_encoder_prepros_c.cpp:(.text+0x2404): undefined reference to `CLDPCEncoderPreProc::ColUnkown'
collect2: ld returned 1 exit status