Questions tagged [xlc]

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

113 questions
1
vote
2 answers

AIX xlC cross-compilation/linkage for C++ not finding C symbols

I am attempting to cross-compile on AIX with the xlc/xlC compilers. The code compiles successfully when it uses the default settings on another machine. The code actually successfully compiles with the cross-compilation, but the problem comes from…
bogertron
  • 2,255
  • 1
  • 24
  • 36
1
vote
5 answers

Problem with Initializing Consts

This code, when compiled in xlC 8.0 (on AIX 5.3), produces the wrong result. It should print 12345, but instead prints 804399880. Removing the const in front of result makes the code work correctly. Where is the bug? #include #include…
Udi Meiri
  • 1,073
  • 8
  • 14
1
vote
2 answers

Why xlC compiler on aix always generates different object files for the same c++ source code?

When I compile a simple test.cpp file twice using xlC compiler on AIX: xlC_r test.cpp -o test1 xlC_r test.cpp -o test2 Then test1 and test2 are diffrent! They have diffrent md5sum. But when I do the same on linux (with g++ of course instead of xlc)…
Morad
  • 2,761
  • 21
  • 29
1
vote
2 answers

xlc: not found on aix 6.1

On install path of websphere MQ/java/lib/jdbc>make oracle I am getting below error xlc: not found I am not sure if xlc is installed in my machine. My machine is AIX 6.1. But I can find xlcpp in my machine. how to proceed?Is there any way to create…
user1929905
  • 389
  • 3
  • 9
  • 25
1
vote
1 answer

Using XA transactions with WebSphere MQ in standalone Java

For using XA transactions with WebSphere MQ in standalone Java I am doing below step and getting error as xlc not found step 1- Prepare the XA switch files For linking object files to their corresponding database libraries. I am executing below…
user1929905
  • 389
  • 3
  • 9
  • 25
1
vote
1 answer

Change build c compiler

I'm trying to build python 2.6.8 from source code on an AIX 6.5 machine, but several modules can't build successful. In the build process, there is a XLC man page jumps out and stucks. I have to press q to end the man page and the process will…
xslittlegrass
  • 4,826
  • 4
  • 26
  • 32
1
vote
4 answers

How to disable a specific IBM XL C++ compiler warning?

Given tmp.cpp: #include #pragma report(disable, CCN8826) int main(int argc, const char *argv[]) { const char * hi = "hi\n"; printf(hi); return 0; } Despite I use #pragma report that is supposed to suppress the warning, I…
Anton Daneyko
  • 6,528
  • 5
  • 31
  • 59
1
vote
2 answers

How to list XCOFF TOC entries

Is there any tool that allows me to list TOC entries in an XCOFF file?
Vojislav Stojkovic
  • 8,043
  • 4
  • 35
  • 48
1
vote
1 answer

How to find out unresolved symbols in aix?

In linux, gcc reports unresolved symbols if there is any. How should I use ld to generate such information in aix?
dalibocai
  • 2,289
  • 5
  • 29
  • 45
1
vote
1 answer

Problems after upgrading IBM C++ compiler from xlc_R 10.0 to 11.1

Everything compiles fine, but during run time, it crashes without any coredumps, exceptions or no logs clues about what is happening. After inserting debug lines, I found that it was around this section of code if( MISC_TABLE_ID != tableID ) …
roymustang86
  • 8,054
  • 22
  • 70
  • 101
0
votes
1 answer

Linking on AIX with -qnoweakexp

What are the advantages or disadvantage of using the -qnoweakexp option for linking a shared library?
David St Denis
  • 813
  • 6
  • 9
0
votes
2 answers

Linking with xlC on AIX: Choose a specific library version

I'm trying to dynamically link a C++ application with libssl (and libcrypto) on an AIX development machine using the xlC compiler. The problem is, that the SSL version installed on the development machine differs from the version installed on the…
Athazo
  • 51
  • 1
  • 6
0
votes
1 answer

Compilation error with xlc++ and aix (The #include file is not found)

I can't find the reason for this compilation error: The #include file is not found I'm compiling with c++11 flag: qlanglvl=extended0x The version of xlc++ is 16.1 in aix 7.2 Can anyone help me? Many thanks.
Antonio
  • 91
  • 1
  • 7
0
votes
0 answers

./Configure is not able to pic xlC_r compiler in AIX 7.1 while compiling Openssl 3.0.7

I am trying to compile OpenSSL 3.0.7 using AIX 7.1 with xlc_r compiler(13.1.3) using below command CC="/usr/vac/bin/xlc_r -q64" ./Configure --prefix=/pathtodir --enable-fips When the above command executed , am getting error like "pick os/compiler…
Thriveni
  • 1
  • 1
0
votes
2 answers

Different object pointer value and its this pointer

basically, I wrote a class with another class array atributte inside, I mean: class MyClass { unsigned long long x_; bool y_; public: MyClass & operator=(const MyClass & mc) { x_ = mc.x_; y_ = mc.y_; return *this; …
Tio Pepe
  • 3,071
  • 1
  • 17
  • 22