coolwanglu/pdf2htmlEX — pull request #38 by Khaos (2012-10-06 04:02:38+00:00)
Title: compatibility with gcc46 on OSX?

I tried to build pdf2htmlEX with GCC 4.6.3 (MacPorts) on Mac OSX (Snow Leopard, 10.6.8) using

$ cmake -D CMAKE_C_COMPILER=gcc-mp-4.6 -D CMAKE_CXX_COMPILER=g++-mp-4.6 .
$ make

and got this

.../pdf2htmlEX/src/HTMLRenderer/state.cc:27:12: error: 'std::tr1' has not been declared

By checking the corresponding line, I found the function `hypot` is under namespace `std`. Since *cmake* had been included, I took away `std` and rebuilt it. Then the error is gone.