xlc or xlC is the command to invoke IBM XL C or C++ compiler. It is used on IBMs proprietary platforms like Blue Gene, AIX, z/OS, and z/VM
Questions tagged [xlc]
113 questions
9
votes
2 answers
static function lookup from a template function issue with xlC
While I was searching for clues about a compilation problem I have had in my source, I have come across this bug report (against Mozilla's JavaScript engine source) related to functions lookup. Quoting from the bug report:
TypedArrayTemplate is…

wilx
- 17,697
- 6
- 59
- 114
6
votes
0 answers
Why comparator of std::map must be const?
I've wrote comparator functional object for std::map for comparing string without case sensitivity.
class CaseInsensitiveCmp
{
public:
bool operator() (const std::string& op1, const std::string& op2) const
{
std::string…

zapredelom
- 1,009
- 1
- 11
- 28
6
votes
2 answers
Remote C development on a UNIX machine from a Windows machine using eclipse
I have terminal access to an AIX machine using ssh/telnet (No root access). I need to develop programs using C and compile it using the xlc compiler. Currently I can open remote files in eclipse(Juno) using RSE and edit files, but code-completion…

jvc
- 604
- 2
- 12
- 33
5
votes
1 answer
AIX 5.3 (ld-xlc) equivalent option Linux (ld-gcc) -rpath
My compiler:xlc version 10.1
Environment: AIX5.3
Linker: ld
When i work on Linux , with gcc (4.4.1) i use the following option
-Wl,-rpath
(-Wl for the linker options) it adds a directory to the runtime library search path.
What's the equivalent…

Nadir SOUALEM
- 3,451
- 2
- 23
- 30
5
votes
1 answer
Static declarations are not considered for a function call if the function is not qualified
"painting/qpathclipper.cpp", line 1643.30: 1540-0274 (S) The name lookup for "fuzzyCompare" did not find a declaration.
"painting/qpathclipper.cpp", line 1643.30: 1540-1292 (I) Static declarations are not considered for a function call if the…

Walter Nissen
- 16,451
- 4
- 26
- 27
4
votes
1 answer
How to use -bloadmap or -bnoquiet option?
I am getting warnings about duplicate symbols during my C compile on AIX 6.1 and it says:
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
I have looked up on Google how to use these but no clear answer yet, can someone…

Lynton Grice
- 1,435
- 3
- 29
- 45
4
votes
3 answers
How can you find out the version of xlC installed on AIX box
So this should be quite simple but just want to see if I got it right.
I am trying to find out what version of xlC compiler is installed on AIX box.
I tried xlC -v/xlc --version which is not supported by the compiler.
I tried lslpp -L | grep xlC
I…

grobartn
- 3,510
- 11
- 40
- 52
4
votes
1 answer
How to disable a specific warning of IBM xl C++ compiler via compiler commandline?
I get compiler message/information
1500-030: (I) INFORMATION: ... Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192.
and it cannot be turned off by
#pragma report(disable,…

mgr
- 344
- 4
- 11
4
votes
2 answers
static compilation of proftpd on AIX
I'd like to compile proftpd on AIX to make it deployable on other server without having to reinstall all gnu lib library on each server.
I already manage to compile it dynamicaly, but I can't manage to get it compile with the option
…

Kiwy
- 340
- 2
- 10
- 43
3
votes
1 answer
Are the Unix compilers too lax or is MSVC 2005 missing a trick?
I ran into a problem with some C code like this:
struct SomeType { ...details immaterial... };
static struct SomeType array[] =
{
{ ... },
...
{ ... },
};
enum { ARRAY_SIZE = sizeof(array) / sizeof(array[0]) };
The Unix compilers…

Jonathan Leffler
- 730,956
- 141
- 904
- 1,278
3
votes
1 answer
obj.template operator() construct does not work with xlC 11.1
The following piece of C++ code:
template
static void execute(T& obj) {
obj.template operator()();
}
when compiled with IBM's xlC 11.1 results in the error message: 1540-0063 (S) The text "operator" is unexpected. If I use a…

Daniel Langr
- 22,196
- 3
- 50
- 93
3
votes
1 answer
IBM XL C/C++ equivalent to #pragma GCC optimize
We are experiencing bad code generation for a source file using IBM XL C/C++ at -O3 on PowerPC platforms. Its surfaces as a hang and it appears a particular loop is not broken.
The problem only surfaces under XL C/C++. Our testing regime indicates…

jww
- 97,681
- 90
- 411
- 885
3
votes
1 answer
xlc: sizeof of templated class not working
I'm using sizeof() inside a template argument, like this:
#include
template
struct Foo {
A a;
};
template)>
class Bar {
public:
Bar() {
// prints 4, as expected
…

martinus
- 17,736
- 15
- 72
- 92
3
votes
1 answer
Compiling the boost C++ library on AIX 7.1 using xlC 13.1.2
I am trying to compile the regex part of the boost C++ library on AIX using the xlC compiler and use it as a 64-bit dynamic library, because I need to compare the performance of several C++ regex libraries and built-in solutions, and boost seemed…

Gábor Ferencz
- 243
- 2
- 9
3
votes
3 answers
Recognize non-standard C++ portably?
C has __STDC__ but there seems to be no standard way of recognizing some extended C++ dialect. Hence for portable code I use
#define __is_extended \
((__GNUG__ &&!__STRICT_ANSI__) || \
…

Andreas Spindler
- 7,568
- 4
- 43
- 34