b***y 发帖数: 2799 | 1 ☆─────────────────────────────────────☆
TonnyZB (Hallo) 于 (Mon Aug 29 23:26:46 2005) 提到:
I am calling a function of random_number_generator (MT19937) written in C. In
that .c file, the
function is delcared as:
inline unsigned long randomMT(void){
....
}
in my C++ class where I called this function, I declared it as:
extern inline unsigned long randomMT(void);
In the makefile, I also included this .c file. The compilation is OK, but during the linking, it always reported the following
error |
|