鸡毛蒜皮集锦

打算纪录一下各种鸡毛蒜皮的小错误,过段时间回头看看有没有用


1. MAC篇

MAC OX 10.8.2 ML, Xcode Xcode 4.5.1 (Build version 4G1004)

1.1 undefined symbols for architecture x86_64:  "_omp_get_thread_num", referenced from:....

Solution: -fopenmp option both enables parsing of OpenMP pragmas at compile time and linking with libgompOpenMP run-time library (and also with libpthreads) at link time. 

http://stackoverflow.com/questions/12500859/openmp-mac-osx-lion-c-linker-error-undefined-symbols-for-architecture-x86-64


1.2 ld: can't open output file for writing: xxxx, errno=21 for architecture x86_64

R&S: 有个和输出文件xxxx同名的文件夹!!(不区分大小写)

Error 21 in /usr/include/sys/errno.h is EISDIR 

http://stackoverflow.com/questions/9200521/why-does-the-name-of-a-source-file-affect-compilation


1.3 编译opencv下的kalman例子出错:ld: can't write output file: kalman for architecture x86_64

R&S:都说了没权限嘛。。。如果一定要在安装目录下生成(/opt/local/share/OpenCV/samples/cpp/)就sudo就好了

这里https://discussions.apple.com/thread/3406578?start=0&tstart=0 说还要

sudo bash

export ARCHFLAGS='-arch i386 -arch x86_64'

没必要

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值