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

xlC ignores option for offsetof on POD

Summary I am trying to compile an old C++ application on a new AIX 7 box with the AIX 11.1 compiler. This application uses offsetof on non POD classes. I set the langlvl option to strict98 and also set the option for "offsetnonpod", which tells the…
0
votes
2 answers

Macro stopped to compile on Linux

I have a library with several macros, it compiles fine on AIX, but now i need to compile the same code and it seems the macros stopped to work. I keep receiving the message: error: pasting "::" and "EVENT_DATA" does not give a valid preprocessing…
Lefsler
  • 1,738
  • 6
  • 26
  • 46
0
votes
4 answers

Boost bind AIX xlc io_service run

Im trying to compile project using boost, binding asio::io_service to boost::thread, and Im getting errors that I dont know how to resolve Using: IBM XL C/C++ for AIX, V11.1 (5724-X13), Version: 11.01.0000.0006 (AIX 7.1) …
Pinker
  • 65
  • 8
0
votes
2 answers

explicit template instantiation gives compile error on XLC, but works on other compilers

The following code is a simplified minimal version of a feature I am trying to implement for a client requirement. It fails to compile on IBM's XLC compiler (version 9 and 11, both) with the error A non-type template parameter cannot have type "int…
Masked Man
  • 1
  • 7
  • 40
  • 80
0
votes
1 answer

Weird issue with XLC++ 11.1

Maybe this was a case of bad programming, but it is manifesting itself with the upgrade of XLC++ from 6.0 to 11.1 The code looks like : int startAt = 140; startAt = parseAndSaveResponseINSTANTID_MODEL(response, startAt); COUT << "After…
roymustang86
  • 8,054
  • 22
  • 70
  • 101
0
votes
1 answer

Error while compiling C code on AIX 7

SO, I have been asked to compile some legacy C code on a AIX7 (64 bit ) box. And, I just changed the makefiles to edit the compiler that was used (from gcc to xlc_r), and the flags, from (-DAIX3 to -DAIX7). However, thanks to this tomfoolery, I am…
roymustang86
  • 8,054
  • 22
  • 70
  • 101
0
votes
1 answer

How to find out why xlC return code is non zero?

The ibm reference says that the return code of 1 is generated, when an error occurred with a severity level higher than the setting of the -qhalt compiler option. I do compile with -qhalt=s (only severe errors) and -qnomaxerr (no limit on the amount…
Anton Daneyko
  • 6,528
  • 5
  • 31
  • 59
-3
votes
1 answer

Aix compilation error due to #define

"1506-221 (S) Initializer must be a valid constant expression." In aix during compilation of header file i am facing this issue. In the header file the source is like #define A(b) (a+b) like that. wherever this macro "A"(Ex:A(5)) is used in source…
freeworld
  • 79
  • 1
  • 8
1 2 3 4 5 6 7
8