?
Solved

C C++ on AS/400

Posted on 2012-03-14
2
Medium Priority
?
469 Views
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
0
Comment
Question by:DazednConfuzed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
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.

HTH,
DaveSlash
0
 
LVL 27

Accepted Solution

by:
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:
*INCDIRFIRST or *NOINCDIRFIRST
*SYSINCPATH or *NOSYSINCPATH
*STDINC or *NOSTDINC

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

Tom
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Summer 2017 Scholarship Winners have been announced!
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

777 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