Hello,

I am trying to compile courier-0.73.1 using clang 3.5 (LLVM). I exported
following env before ./configure

export CC=clang
export CXX=clang++
export CFLAGS="-g"
export CXXFLAGS=" -g -I/usr/include/i386-linux-gnu/c++/4.8"

I need to specify "-I/usr/include/i386-linux-gnu/c++/4.8" in CXXFLAGS,
otherwise there will be a bits/c++config.h file not found error.

During compilation, I got the following error:

clang++ -DHAVE_CONFIG_H -I.     -Wall -I./.. -I.. -I../libs -I./../libs
-I./libs   -I/usr/include/i386-linux-gnu/c++/4.8 -MT webmlmd.o -MD -MP -MF
.deps/webmlmd.Tpo -c -o webmlmd.o webmlmd.C
In file included from webmlmd.C:45:
./webmlmd.H:52:12: error: elaborated type refers to a typedef
                class T::iterator b=s.begin(), e=s.end(), p=b;
                         ^
./webmlmd.H:100:10: note: in instantiation of function template
specialization
      'webmlmd::html_escape<std::basic_string<char> >' requested here
                return html_escape<std::string>(a);
                       ^
/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/c++/4.8/bits/basic_string.h:127:68:
note:
      declared here
      typedef __gnu_cxx::__normal_iterator<pointer, basic_string>  iterator;
                                                                   ^
In file included from webmlmd.C:45:
./webmlmd.H:52:12: error: elaborated type refers to a typedef
                class T::iterator b=s.begin(), e=s.end(), p=b;
                         ^
webmlmd.C:322:28: note: in instantiation of function template specialization
      'webmlmd::html_escape<std::basic_string<wchar_t> >' requested here
        return toutf8str(webmlmd::html_escape(listname));
                                  ^
/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/c++/4.8/bits/basic_string.h:127:68:
note:
      declared here
      typedef __gnu_cxx::__normal_iterator<pointer, basic_string>  iterator;


Could you please tell me how to solve this issue?

And in general, has anybody tried to compile courier using clang?

Thank you very much!

Mingyi
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to