Solved

C C++ on AS/400

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A safe way to clean winsxs folder from your windows server 2008 R2 editions
A Short Story about the Best File Recovery Software – Acronis True Image 2017
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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

21 Experts available now in Live!

Get 1:1 Help Now