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
0
votes
1 answer

linking a static c++ library built by gcc with a program compiled by xlC?

I have a third party static library that was built on AIX with gcc. When I try to link to that library using the xlC AIX compiler I get all sorts of unresolved symbols. I believe it is due to the differences in name mangling. If I get the manged…
ojblass
  • 21,146
  • 22
  • 83
  • 132
0
votes
1 answer

What is the meaning of comparing char to NULL on AIX (xlc)?

I am porting AIX code to Linux. I encountered some code which compares char to NULL on AIX xlc compiler. The same code gives compile error on Linux. There is code which compares double with NULL ( d != NULL). Could somebody explain the semantics of…
Chandu
  • 1,837
  • 7
  • 30
  • 51
0
votes
2 answers

How build 64-bit version of libpq from source code?

I'm trying connect to PostgreSQL from C-code, and i have to build libpq from source, because i'm on AIX. I followed the steps in this comment Where do i get libpq source? but in result i got a 32-bit version of libpq.a, how build 64-bit version?
0
votes
1 answer

Are TRUE and FALSE defined in headers of xlc_r AIX compiler?

I am porting some code from AIX to Linux I am getting compilations errors for undefined symbols TRUE and FALSE. They are not defined in the source code and I dont have access to AIX system. Are these symbols defined in headers of xlc compiler ?
Chandu
  • 1,837
  • 7
  • 30
  • 51
0
votes
2 answers

Xerces. Dynamic casting DOMNode pointer to DOMElement returns a nullptr

Good day. The problem is the following. I have a valid *.xml file which I try to parse using the following code: for(XMLSize_t i = 0; i < childrenNodeCount; ++i) { DOMNode* currentNode = children->item(i); if ((currentNode->getNodeType() != 0)…
HighPredator
  • 790
  • 4
  • 21
0
votes
2 answers

How to static link ncurses on AIX using xlc

I'm trying to use the ncurses library on AIX 7.1 to make use of panels which aren't included in the curses library that is standard on AIX. I have the ncurses library installed. The compile,link, and execute work fine with: xlc ngoodbye.c…
0
votes
1 answer

why XLC compiler on bluegene/q doesn't support '-qtm'?

I have a problem with the xlc compiler on BlueGene/q. The version of the xlc compiler is 12.1: IBM XL C/C++ for Blue Gene, V12.1 Version: 12.01.0000.0000 According to the document1, it should support the compiler option "-qtm", which is used to…
0
votes
2 answers

libqrencode - Segmentation fault couldn't read "qrspec.c"

I previously made this question and got a light at the end of the tunnel by the response that I got. But now that I found the problem, I don't understand it. I don't have root priv. Whenever I run the program I get segmentation fault and a core…
Vcoder
  • 124
  • 1
  • 13
0
votes
0 answers

MALLOCDEBUG showing random output when using xlc_r

I have a program, compiled using xlc_r, that spawns off multiple threads and am trying to trace it to see if there's any memory leaks. I've gone through this article detailing how I can use the MALLOCDEBUG feature that's built in to AIX, but after…
Zac
  • 2,325
  • 3
  • 23
  • 33
0
votes
1 answer

On AIX machine can I use libraries(both static and dynamic) compiled with xLC and use them with gcc compiler?

My C static and dynamic libraries are compiled with xLC compiler. Is it possible to use those libraries in some program and use gcc as compiler on AIX? Or Is it necessary to use xLC only as the compiler for later part also?
Naman
  • 2,569
  • 4
  • 27
  • 44
0
votes
2 answers

LD error on existing file

Good day everyone. The problem is this. I'm using a makefile to make an application. In it I have both LDFLAGS and LDLIBS (as well as others, but those 2 are relevant) specified and pointing to correct *.a files in existing folders. While trying to…
HighPredator
  • 790
  • 4
  • 21
0
votes
1 answer

Aix flag to reduce size of shared file

I am using xlC (Version: 11.01.0000.0011). While build i am using "-g" to have debug information in build. there are many object files (>500) due to which resultant shared file (.so) will have huge size. I can't reduce optimization level. Is…
Abhi
  • 192
  • 1
  • 4
  • 17
0
votes
1 answer

Does forward_list supported on xlc

I am porting my code to xlC. Wondering if forward_list is supported by xlC? i tried with test program #include #include int main() { std::forward_list fl; std::cout<<"Hello"; return 0; } Its compiling…
Abhi
  • 192
  • 1
  • 4
  • 17
0
votes
1 answer

AIX run time error: Symbol __dbargs (number 191) is not exported from dependent

I am getting errors when I try to run my executable together with my shared library on AIX: Symbol __dbargs (number 191) is not exported from dependent module /opt/CA/SharedComponents/lib/libcfOSServices.a. Symbol __dbsubc (number 192)…
wilx
  • 17,697
  • 6
  • 59
  • 114
0
votes
1 answer

How do I include IBM XLC template *.c files in the make dependency file?

For the XLC compiler, templated code goes in a *.c file. Then when your program is compiled that uses the template functions, the compiler finds the template definisions in the .c file and instantiates them. The problem is that these .c files are…
JohnMcG
  • 8,709
  • 6
  • 42
  • 49