由买买提看人间百态

topics

全部话题 - 话题: randommt
(共0页)
b***y
发帖数: 2799
1
来自主题: Programming版 - [合集] how to refer an inline function?
☆─────────────────────────────────────☆
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
(共0页)