C C++ on AS/400

Posted on 2012-03-14
Medium Priority
Last Modified: 2012-06-21
I am new to C so please forgive..     I am trying to compile a C program on an as400/iseries and I can do the hello world and all that no problem.   I am now trying to #include some third party c and h files that are in the IFS.   No matter what I it can't seem to find these files.  If any one can help with this it would be great or is familure with using libtiff even better

Thanks in advance..

sorry for any duplications.  This new setup made it hard to find the right catagories
Question by:DazednConfuzed
LVL 18

Expert Comment

by:Dave Ford
ID: 37720859
Interesting. I've never tried to include external files from the IFS, but I almost always include custom h files from my local system.

For example, if I include "mycustom.h" in my C program, I put the file in a source-member called MYCUSTOM in source-physical-file called H.

LVL 27

Accepted Solution

tliotta earned 2000 total points
ID: 37722706
Review the INCDIR() parameter on the CRTCMOD and/or CRTBNDC commands for compiling C modules or a bound C program.

Also, review the OPTION() parameter for use of:

Also, you might check to see whether or not you are using an INCLUDE environment variable during compiles.


Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

An Incident response plan is an organized approach to addressing and managing an incident. The goal is to handle the situation in a way that limits damage and reduces recovery time and costs.
When the first reports of the initial sales of Nintendo Switch in the Land of the Rising Sun appeared. In Japan, only 330,637 consoles were sold for the first day. But many large retail chains have already sold out the entire edition of the console …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question