Other HI-TECH Compilers & Products >> Other HI-TECH Compilers & Products

Pages: 1
Ygg



Reged: Feb 18 2007
Posts: 3
#include problem
      #28828 - Sun Feb 18 2007 09:31 AM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3387
Loc: Boulder, Colorado U.S.A.
Re: #include problem [Re: Ygg]
      #28829 - Sun Feb 18 2007 10:49 AM

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?


Post Extras: Print Post   Remind Me!   Notify Moderator  
Ygg



Reged: Feb 18 2007
Posts: 3
Re: #include problem [Re: Dan Henry]
      #28830 - Sun Feb 18 2007 12:49 PM

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)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3387
Loc: Boulder, Colorado U.S.A.
Re: #include problem [Re: Ygg]
      #28831 - Sun Feb 18 2007 01:19 PM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:  ndouglas, jtemples, Dan Henry, Andrew L, mikerj, dave g, meisty, josh stevo 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 1423

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5