正则表达式提升与雪豹welll打 [英] Boost Regex not playing welll with Snow leopard

查看:130
本文介绍了正则表达式提升与雪豹welll打的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

于是我继承了C ++编写的code使用Boost库。我可以编译(使用code块),并在Linux上运行Ubuntu上code,但是当我把它移植到了Mac和安装Boost库,我可以用code块(并指定编译正则表达式库的位置),但它不会运行。

So I inherited code written in C++ that uses the Boost library. I could compile (using Code Blocks) and run the code on Linux Ubuntu but when I ported it over to the mac and installed the boost library, I can compile it using code blocks (and specifying the location of the regex libraries) but it won't run.

它只是给我的错误:

$ ./BLAH_PD

$ ./BLAH_PD

dyld的:库未加载:libboost_regex.dylib
  /Users/spinach/Desktop/B/BLAH/bin/Release/./BLAH_PD:从引用
  原因:图片未找到
跟踪/ BPT陷阱

dyld: Library not loaded: libboost_regex.dylib Referenced from: /Users/spinach/Desktop/B/BLAH/bin/Release/./BLAH_PD Reason: image not found Trace/BPT trap

我不知道下一步该怎么做,但任何帮助将大大AP preciated。

I'm not sure what to do next but any help would be greatly appreciated.

大卫

推荐答案

您需要设置 DYLD_LIBRARY_PATH 环境变量的地方包括:安装编译升压库的路径。

You need to set the DYLD_LIBRARY_PATH environment variable to include the path where you installed the compiled Boost libs.

这篇关于正则表达式提升与雪豹welll打的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆