Solved

C C++ on AS/400

Posted on 2012-03-14
2
440 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
End iSeries Job Programmtically 13 416
AS/400 - Steps to finding what the problem is? 20 101
iSeries Library Syncing 3 168
Comments on the use of ftp server/client on OS/400 AS/400 4 98
A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now