[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-ocrad] Compiling on Mac OS X Mavericks
From: |
Matthew Swain |
Subject: |
[Bug-ocrad] Compiling on Mac OS X Mavericks |
Date: |
Thu, 07 Nov 2013 14:57:00 +0000 |
Hi,
I'm having some trouble compiling ocrad on Mac OS X Mavericks. I believe this
is because Mavericks changes the default C++ standard library from libstdc++ to
libc++.
There error I'm getting is:
no member named 'abs' in namespace 'std'
This happens for every occurrence of "std::abs". I found that adding "#include
<cstdlib>" to all the relevant files seems to solve the problem.
Here's a list of all the files I had to add "#include <cstdlib>" to:
character_r11.cc
feats_test0.cc
profile.cc
track.cc
Also, on an unrelated note: Would it be possible to provide a tar.gz download
for ocrad as well as the existing tar.lz version? I notice that previous
versions offered both, but recent versions only have the tar.lz option.
Thanks,
Matt
- [Bug-ocrad] Compiling on Mac OS X Mavericks,
Matthew Swain <=