Using RHEL4 U2, gcc 3.4.4, ARS v6.3 libs.
rtl .h files are in ./
g++ test.cpp -o test -fpermissive -I. -
I/opt/ar/api/include -I/opt/ar/api/lib
In file included from test.cpp:2:
/opt/ar/api/include/ar.h:972: error: expected
unqualified-id before '!' token
/opt/ar/api/include/ar.h:972: error: abstract
declarator `ARQualifierStruct*' used as declaration
/opt/ar/api/include/ar.h:972: error: expected `;'
before '!' token
In file included from ./FieldLimit.h:27,
from ./Field.h:30,
from ./ARTypes.h:356,
from test.cpp:7:
./Qualifier.h: In member function `void
rtl::Qualifier::CopyARQualifierStruct
(ARQualifierStruct&, const ARQualifierStruc
t&)':
./Qualifier.h:97: error: 'union
ARQualifierStruct::<anonymous>' has no member
named 'notQual'
./Qualifier.h:98: error: 'union
ARQualifierStruct::<anonymous>' has no member
named 'notQual'
./Qualifier.h:98: error: 'const union
ARQualifierStruct::<anonymous>' has no member
named 'notQual'
In file included from test.cpp:16:
./EntryListFieldValue.h: At global scope:
./EntryListFieldValue.h:34: error: redefinition of
`class rtl::EntryListFieldValue'
./EntryListFieldValue.h:34: error: previous definition
of `class rtl::EntryListFieldValue'
test.cpp: In function `int main(int*, char**)':
test.cpp:50: error: no matching function for call to
`rtl::Server::getListEntryWithFields
(rtl::EntryListFieldValueList&, const char
[8], rtl::Qualifier&, rtl::ListT<ARInternalIdList,
ARInternalId, rtl::Id>&)'
./Server.h:1187: note: candidates are: void
rtl::Server::getListEntryWithFields
(rtl::AssignableT<AREntryListFieldValueLi
st>&, const std::string&, const rtl::Qualifier&, const
rtl::IdList&, const rtl::SortList&, unsigned int,
unsigned int, u nsigned int*)
test.cpp:59: error: expected `}' at end of input
/usr/lib/gcc/i386-redhat-
linux/3.4.4/../../../../include/c++/3.4.4/bits/stl_cons
truct.h:107: confused by earlier errors,
bailing out
make: *** [test] Error 1
Logged In: NO
This is an error including ar.h. I'm not sure what the
cause is, but it isn't something unique to using rtl.
It's a problem including the AR System API itself. You
might be able to get Remedy support to help out with this
(or try the arslist if you are a member).
FWIW, I've used gcc on Debian Linux successfully before
without this error.
Dan