Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8735923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:10:59+00:00 2026-06-13T10:10:59+00:00

The ibm reference says that the return code of 1 is generated, when an

  • 0

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 of errors). Despite I get my files successfully, compiled the xlC return code is 1, but not 0. I would live with that, but this breaks my Makefile, because make stops, when it encounters non zero error code from a compiler.

When I compile a simple int main() { return 0; } program, I get 0 return code as expected…

Here is how the problematic compilation session looks like:

bash-3.1$ xlC -O4 -qstrict -I/adaneyko/src/boost-trunk -c some.h some.cpp -qhalt=s -qnomaxerr
xlC: 1501-218 (W) file some.h contains an incorrect file suffix
bash-3.1$ echo $?
1
bash-3.1$ xlC -qversion
IBM XL C/C++ Advanced Edition for Blue Gene/P, V9.0
Version: 09.00.0000.0010

I have no idea about that 1501-218 warning and was not able to find it in the ibm reference.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:11:01+00:00Added an answer on June 13, 2026 at 10:11 am

    1501-218 (W) file some.h contains an incorrect file suffix

    The warning message 1501-218 means what it says, some.h, has a file suffix of “.h” which is not a valid file suffix for an input file to the xlC command. Presumably “some.h” is a header file that is #include from some.cpp and doesn’t need to be listed on the xlC command line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that has generic references in it and my IBM RAD
IBM explains C++ pass by reference in the example below (source included). If I
We're currently on a company-wide project that will replace IBM ClearCase 7.0.1 with IBM
In college we studied IBM's MQ Series which was middleware that you could send
I am using IBM DB2 with Toad. I have a stored procedure that I
I've created a client for SOAP web service, but in the generated code some
For c++03, there are next reference pages : cplusplus IBM pages for c++ MSDN
What am I missing here? http://www.ibm.com/developerworks/java/library/j-pg10255/index.html In reference to Listing 1: Why is lamp1
I'm trying to connect to Informix database using sample code from https://www.ibm.com/developerworks/data/library/techarticle/dm-0510durity/ I'm using
In one of my websites, I have added a reference to IBM.DATA.DB2.dll (which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.