opencv-jni -调试出错taking address of temporary [-fpermissive]
来源:互联网 发布:淘宝网穿越火线 编辑:程序博客网 时间:2024/05/18 01:51
今天在进行代码往安卓平台移植时,IplImage *qImg=&(IplImage)dst1;报错taking address of temporary [-fpermissive]
百度了一下:原来中 &(IplImage)dst1操作取了临时变量的地址。返回后临时变量已经“消失”了,你不能再使用了。所以报错。
解决方法:设置中间变量:
IplImage temp = (IplImage)dst1;
IplImage *qImg=&temp;
这样就解决了。
2 0
- opencv-jni -调试出错taking address of temporary [-fpermissive]
- taking address of temporary错误
- error: taking address of temporary
- C++编译出现的警告----------taking address of temporary
- returning address of local variable or temporary
- warning C4172: returning address of local variable or temporary
- [linux]using temporary as lvalue [-fpermissive]
- dlitech's m3 project url, of course it's a temporary address
- D:\vcfile\4.c(6) : warning C4172: returning address of local variable or temporary
- C++编译出错discards qualifiers [-fpermissive]
- 【GCC调试程序C语言问题】error: initializer-string for array of chars is too long [-fpermissive]
- Taking Advantage of Linux Capabilities
- Methods of taking a snapshot
- temporary of type `int'
- Taking Advantage of the Winlogon Notification Package
- Taking Advantage of the Winlogon Notification Package
- Taking Advantage of the Winlogon Notification Package
- Taking ownership of this virtual machine failed.
- 伴随着三维全息投影技术的升级,物理屏幕将彻底消失
- DWZ+thinkphp的使用
- iOS开发 - Xcode使用 - xb、xRun
- App(iOS版)测试要点
- 分析Cocos2d-x横版ACT手游源代码 1、公共
- opencv-jni -调试出错taking address of temporary [-fpermissive]
- ORA-38760: This database instance failed to turn on flashback database 第三篇
- App Store审核指南中文版(2014.9.10更新)
- Big-Endian 和 Little-Endian 两者概念的区别
- linux 防止进程执行多次 代码
- Kubernetes初探:原理及实践应用
- 5个用于移动开发的最流行数据库
- C#学习笔记:01背包
- 读财报:交易额增长111%的京东,为毛还是亏?