Ygg
Reged: Feb 18 2007
Posts: 3
|
|
Hi! Im trying to include a custom header file into my program; it's in another directory than the default one for header files. I failed when using the -Ipath option with the compiler, and I can't think of any other syntax than this: pacc -Ipath [path] [file], so can someone help me please? For example I wrote: pacc -Ipath C:\customh\ myprog.c and in my file I wrote #include "test.h" but it won't work, although the test.h file is in the specified directory (error message: "Cannot open include file "test.h""). I know this is a beginners problem but I still need help!
Regards Ygg
|
Dan Henry
Guru
  
Reged: Oct 16 2003
Posts: 3387
Loc: Boulder, Colorado U.S.A.
|
|
The "General Programming" forum's summary reads "A general discussion about programming issues which are not specific to any particular processor or compiler.", yet your question has to be about a specific compiler and you have posted here without specifying what compiler you are using.
Your post twice used "pacc". Is that a typo for "picc"? Are you using HI-TECH's PICC compiler or are you truly using HI-TECH's Pacific C 8086 compiler?
|
Ygg
Reged: Feb 18 2007
Posts: 3
|
|
I followed the link on this page "http://www.htsoft.com/products/PACIFICc.php" to this forum; the link was described thus: "A forum for Pacific C is available on this website. Use it to ask questions, read other people's answers or generally discuss Pacific C."; I made the bold text myself. So yes, it's the Pacific C compiler I'm using, and I thought this entire forum was about Pacific C; now I found the sub forum for Pacific C users and I reposted this topic there.

Quote:
And from that list of 10 forum categories and 11 compilers you selected the one having the description "Any general topics which are not specific to a particular processor or compiler or other forum" instead of the one named Pacific C & 80x86 and having the description "Discussions about the Pacific C and 8086 C compilers and associated processors"! Why?
Instead of bumping this topic I will respond in my latest post - and thank you for providing me with an answer to my problem. I simply assumed that the sentence I quoted in my first post was literally and exclusively true and I didn't bother to read any futher descriptions about the forum since I believed I had found what I sought. However if I have more questions about the Pacific C compiler I will post in it's specialized forum.
Regards Ygg
Edited by Ygg (Sun Feb 18 2007 01:28 PM)
|
Dan Henry
Guru
  
Reged: Oct 16 2003
Posts: 3387
Loc: Boulder, Colorado U.S.A.
|
|
Quote:
I followed the link on this page "http://www.htsoft.com/products/PACIFICc.php" to this forum; the link was described thus: "A forum for Pacific C is available on this website. Use it to ask questions, read other people's answers or generally discuss Pacific C."; I made the bold text myself. So yes, it's the Pacific C compiler I'm using...
No inference can be made in that regard because that link you described took you here where there are 14! compilers listed:
http://www.htsoft.com/forum/all/categories.php
And from that list of 10 forum categories and 14 compilers you selected the one having the description "Any general topics which are not specific to a particular processor or compiler or other forum" instead of the one named Pacific C & 80x86 and having the description "Discussions about the Pacific C and 8086 C compilers and associated processors"! Why?
Quote:
... and my question is how do I specify the directory for include files to the compiler.
pacc -IC:\customh myprog.c
|