X-Spam-Check-By: sourceware.org
X-ME-UUID: 20060306155904200 DOT 30F511C00176 AT mwinf1209 DOT wanadoo DOT fr
Message-ID: <440C5D94.8010700@etu.enseeiht.fr>
Date: Mon, 06 Mar 2006 17:04:36 +0100
From: Agnes Bousquier <agnes DOT bousquier AT etu DOT enseeiht DOT fr>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gcc-g++ can not find included files
References: <057c01c64135$0362b330$a501a8c0 AT CAM DOT ARTIMI DOT COM>
In-Reply-To: <057c01c64135$0362b330$a501a8c0@CAM.ARTIMI.COM>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Dave Korn a �crit :
> On 06 March 2006 15:09, Agnes Bousquier wrote:
>
>   
>> Hello,
>>
>>   I am trying to compile the C++ program included. Unfortunately, when I
>> type :
>> "g++ -o avcodec_sample avcodec_sample.cpp -lavformat -lavcodec -lz", gcc
>> outputs many errors telling that it can not find many functions and
>> variables, after telling :
>> avcodec_sample.cpp:20:21: avcodec.h : No such file or directory
>> avcodec_sample.cpp:21:22: avformat.h : No such file or directory
>>
>>   Can anybody explain me why it can not find these files, although the
>> path in the "#include" part is right?
>>     
>
>   What 'path in the #include part'?  Your example just says
>
> #include <avcodec.h>
> #include <avformat.h>
>
>   I don't see any path in that.  You had better use a -I option to tell the
> compiler where the include files are.
>
>     cheers,
>       DaveK
>   
  Thank you for your reply. You showed me where I did wrong : I was 
modifying a file, and compiling another... Please excuse me for my 
stupidity.

Best regards,

Agn�s


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/