在Linux中,所有函数均返回NULL值 [英] All functions returns NULL value in Linux
本文介绍了在Linux中,所有函数均返回NULL值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将所有.cpp文件重命名为.cc之后,程序中的所有函数均返回NULL值.此问题仅在Linux中可见,但在Android平台上可以正常使用.
Hi,
All the function in my program is returning a NULL value after renaming all the .cpp file to .cc. This issue is only seen in Linux, but is working completely fine on Android platform.
Error:
cp .libs/libtalkapp.la ../Platform/linux/lib/.libs/
cp: cannot create regular file `../Platform/linux/lib/.libs/'': Is a directory
make[2]: *** [all] Error 1
任何帮助都会非常有帮助.
预先感谢,
Faez
Any help would be really helpful.
Thanks in advance,
Faez
推荐答案
上面给出的错误消息似乎与您描述的问题无关.
关于函数似乎返回NULL值的问题:有时,编译器从文件类型派生出给定文件是C还是C ++,这在函数签名方面有很大的不同.也许是导致问题的原因.
The error message given above seems to be unrelated to the problem you describe.
Regarding the problem that functions appear to return NULL values: Sometimes compilers derive from the file type whether the given file is in C or C++, which makes a big difference regarding the function signatures. Perhaps that is what causes the problem.
这篇关于在Linux中,所有函数均返回NULL值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文