Solved

C C++ on AS/400

Posted on 2012-03-14
2
451 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:daveslash
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 500 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
Read  the original post  on Monitis Blog. Hi.  My name is Erik Dietrich, and this is the first time I’ve posted on the Monitis blog.  By way of introduction, I thought it would make sense to talk about my initial experience with Monitis.   Befo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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