X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: gcc-g++ can not find included files Date: Mon, 6 Mar 2006 15:45:34 -0000 Message-ID: <057c01c64135$0362b330$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <440C50A6.9010508@etu.enseeiht.fr> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 #include 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 -- Can't think of a witty .sigline today.... -- 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/