Boost logo

Boost :

Subject: [boost] Problems testing compiling on AS400/i5/whatever
From: Jon Brisbin (jon.brisbin_at_[hidden])
Date: 2009-09-21 15:21:14


I'm using the QSH environment on AS400 and the "ixlc" compiler
(basically just CRTCPPMOD), trying to compile the following test
program:

#include <iostream>
#include <boost/foreach.hpp>

int main(int argc, char** argv) {
   std::string hello = "Hello, world!";
   BOOST_FOREACH( char ch, hello ) {
     std::cout << ch << std::endl;
   }

   return (EXIT_SUCCESS);
}

Which results in the following errors:

The compilation failed.
/home/jbrisbin/include/boost/type_traits/is_member_pointer.hpp Line
000054 "/home/jbrisbin/include/boost/type_traits/
is_member_pointer.hpp", line 54.63: CZP0403(30) "template <class T,
class U> struct boost::is_member_pointer<U T::* const>" is alread
ERROR 1 001
/home/jbrisbin/include/boost/type_traits/is_member_pointer.hpp Line
000055 "/home/jbrisbin/include/boost/type_traits/
is_member_pointer.hpp", line 55.63: CZP0403(30) "template <class T,
class U> struct boost::is_member_pointer<U T::* volatile>" is alr
ERROR 1 001
/home/jbrisbin/include/boost/type_traits/is_member_pointer.hpp Line
000056 "/home/jbrisbin/include/boost/type_traits/
is_member_pointer.hpp", line 56.63: CZP0403(30) "template <class T,
class U> struct boost::is_member_pointer<U T::* const volatile>" ERROR
1 001 2 000051

The full text of the error complains that these are already defined.

Does anyone have pointers or tricks that could point me in the right
direction to compile programs that use header-only Boost libs on the
AS400? Any help would be appreciated! :)

Jon Brisbin
Portal Webmaster
NPC International, Inc.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk