PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > can't locate my include files
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
can't locate my include files

Réponse
 
LinkBack Outils de la discussion
Vieux 19/10/2007, 04h31   #1
don
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut can't locate my include files

I was trying to compile a .c source file using bcc on my winxp system but
the only way this would work is if I put the stdio.h file in the same folder
as the source file, even though my include statement said this #include
<c:\myfiles\include> which I thought would solve the "can't find error" I
was getting for my printf statements etc. etc.



  Réponse avec citation
Vieux 19/10/2007, 05h41   #2
Thomas Lumley
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't locate my include files

On Oct 18, 8:31 pm, "don" <d...@panix.com> wrote:
> I was trying to compile a .c source file using bcc on my winxp system but
> the only way this would work is if I put the stdio.h file in the same folder
> as the source file, even though my include statement said this #include
> <c:\myfiles\include> which I thought would solve the "can't find error" I
> was getting for my printf statements etc. etc.


If you want to include stdio.h you should just be able to write
#include <stdio.h>

If you want #include to find files other than the Standard headers
then read your compiler documentation to find out how it handles files
and paths. This is officially implementation-defined, ie, the
implementation is required to document it.

-thomas

  Réponse avec citation
Vieux 19/10/2007, 07h12   #3
user923005
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't locate my include files

On Oct 18, 8:31 pm, "don" <d...@panix.com> wrote:
> I was trying to compile a .c source file using bcc on my winxp system but
> the only way this would work is if I put the stdio.h file in the same folder
> as the source file, even though my include statement said this #include
> <c:\myfiles\include> which I thought would solve the "can't find error" I
> was getting for my printf statements etc. etc.


See section 10 of the C-FAQ.

  Réponse avec citation
Vieux 19/10/2007, 22h10   #4
don
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't locate my include files

Do you have a link for this C FAQ?

"user923005" <dcorbit@connx.com> wrote in message
news:1192774349.176536.17760@y27g2000pre.googlegro ups.com...
> On Oct 18, 8:31 pm, "don" <d...@panix.com> wrote:
>> I was trying to compile a .c source file using bcc on my winxp system
>> but
>> the only way this would work is if I put the stdio.h file in the same
>> folder
>> as the source file, even though my include statement said this #include
>> <c:\myfiles\include> which I thought would solve the "can't find error"
>> I
>> was getting for my printf statements etc. etc.

>
> See section 10 of the C-FAQ.
>



  Réponse avec citation
Vieux 19/10/2007, 22h42   #5
Peter Pichler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't locate my include files

don wrote:

> Do you have a link for this C FAQ?


http://www.c-faq.com/

There used to be regular reminders posted to the group.
What happened to them?
  Réponse avec citation
Vieux 19/10/2007, 22h42   #6
Ian Collins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't locate my include files

don wrote:

Please don't top post.

>
> "user923005" <dcorbit@connx.com> wrote in message
> news:1192774349.176536.17760@y27g2000pre.googlegro ups.com...
>> On Oct 18, 8:31 pm, "don" <d...@panix.com> wrote:
>>> I was trying to compile a .c source file using bcc on my winxp system
>>> but
>>> the only way this would work is if I put the stdio.h file in the same
>>> folder
>>> as the source file, even though my include statement said this #include
>>> <c:\myfiles\include> which I thought would solve the "can't find error"
>>> I
>>> was getting for my printf statements etc. etc.

>> See section 10 of the C-FAQ.
>>

>
> Do you have a link for this C FAQ?


Have you looked? The first hit on a google of "c faq" looks good to me.

--
Ian Collins.
  Réponse avec citation
Vieux 20/10/2007, 03h39   #7
don
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't locate my include files


>>> See section 10 of the C-FAQ.
>>>

>>
>> Do you have a link for this C FAQ?

>
> Have you looked? The first hit on a google of "c faq" looks good to me.
>
> --
> Ian Collins.


There were so many hits that I wanted to narrow it down - the fastest way to
an answer is to ask the Right question.


  Réponse avec citation
Vieux 20/10/2007, 09h41   #8
Joachim Schmitz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't locate my include files

"Peter Pichler" <usenet@pichler.co.uk> schrieb im Newsbeitrag
news:471924b6$1_2@mk-nntp-2.news.uk.tiscali.com...
> don wrote:
>
>> Do you have a link for this C FAQ?

>
> http://www.c-faq.com/
>
> There used to be regular reminders posted to the group.
> What happened to them?

They still happen about once a month (or fortnight?) and there was one
resently, earlyier this week or near the end of the week before

Bye, Jojo


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h55.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13405 seconds with 16 queries