Undefined symbols for architecture x86_64:

2014-09-23 Thread Brickle Macho
Hi All, Not sure how to solve my problem, any help appreciated Writing a simple C++ program to use OpenCV 2.4.9. I am getting the following error. Undefined symbols for architecture x86_64: cv::imread(std::basic_string. Google searches seems to indicate linker error and/or libs

Re: Undefined symbols for architecture x86_64:

2014-09-23 Thread Ryan Schmidt
On Sep 23, 2014, at 1:55 AM, Brickle Macho wrote: Not sure how to solve my problem, any help appreciated Writing a simple C++ program to use OpenCV 2.4.9. I am getting the following error. Undefined symbols for architecture x86_64: cv::imread(std::basic_string. Google searches

Re: Undefined symbols for architecture x86_64:

2014-09-23 Thread Brickle Macho
On 23/09/2014 4:00 pm, Ryan Schmidt wrote: You must must clang, not gcc. https://trac.macports.org/wiki/FAQ#libcpp Thanks. So I guess I need to inform macports to use clang? Does this mean a reinstall/compile of all my mac ports? I will google more.

Re: Undefined symbols for architecture x86_64:

2014-09-23 Thread Ryan Schmidt
On Sep 23, 2014, at 6:38 AM, Brickle Macho wrote: On 23/09/2014 4:00 pm, Ryan Schmidt wrote: You must must clang, not gcc. https://trac.macports.org/wiki/FAQ#libcpp Thanks. So I guess I need to inform macports to use clang? Does this mean a reinstall/compile of all my mac ports?

Re: Undefined symbols for architecture x86_64:

2014-09-23 Thread René J . V . Bertin
On Tuesday September 23 2014 06:44:33 Ryan Schmidt wrote: MacPorts is already using clang, for most ports, in particular for opencv. You seemed to be talking about manually compiling some other software outside of MacPorts which uses opencv. And you showed the output of gcc --version which

Re: install a por

2014-09-23 Thread Jan Stary
On Sep 05 16:48:44, allber...@gmail.com wrote: On Fri, Sep 5, 2014 at 4:43 PM, Alejandro Imass aim...@yabarana.com wrote: On Fri, Sep 5, 2014 at 4:36 PM, Dave Horsfall d...@horsfall.org wrote: On Fri, 5 Sep 2014, Alejandro Imass wrote: Yeah MacPorts is the most awesome piece of

Re: install a por

2014-09-23 Thread Brandon Allbery
On Tue, Sep 23, 2014 at 10:55 AM, Jan Stary h...@stare.cz wrote: Have a look at OpenBSD's pkg_add(1) pkg is great if you can get away with defaults for everything. I always find myself forced into ports -- brandon s allbery kf8nh sine nomine associates