由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] how to refer an inline function?
相关主题
问一个简单问题[转载] Re: 问个土问题吧
Urgent question: AIX, C++11, Shared ObjectAnother question
请教个rng的问题little endian vs big endian
[合集] linking problem using template请教一个C的问题
[合集] can someone recommend a C++ book esp. on template? Thanks!template metaprogramming 的问题
其实真神的意思是:学习python就是几个小时的事,吵啥?一道面试题
new了指针,delete的时候出错了来来来,我也问个题 (转载)
问一个在C里面转换十六进制的问题Embedded C 编程问题求助
相关话题的讨论汇总
话题: inline话题: function话题: randommt话题: refer话题: unsigned
进入Programming版参与讨论
1 (共1页)
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
1 (共1页)
进入Programming版参与讨论
相关主题
Embedded C 编程问题求助[合集] can someone recommend a C++ book esp. on template? Thanks!
有没有什么简单的方法从一个double precision的floating point 中读出一个特定的bit?其实真神的意思是:学习python就是几个小时的事,吵啥?
问个overloading new operator的问题new了指针,delete的时候出错了
内存泄露了吗?问一个在C里面转换十六进制的问题
问一个简单问题[转载] Re: 问个土问题吧
Urgent question: AIX, C++11, Shared ObjectAnother question
请教个rng的问题little endian vs big endian
[合集] linking problem using template请教一个C的问题
相关话题的讨论汇总
话题: inline话题: function话题: randommt话题: refer话题: unsigned