This is the mail archive of the
mailing list for the Cygwin project.
Re: gcc-g++ can not find included files
- From: Agnes Bousquier <agnes dot bousquier at etu dot enseeiht dot fr>
- To: cygwin at cygwin dot com
- Date: Mon, 06 Mar 2006 17:04:36 +0100
- Subject: Re: gcc-g++ can not find included files
- References: <057c01c64135$0362b330$a501a8c0@CAM.ARTIMI.COM>
Dave Korn a écrit :
On 06 March 2006 15:09, Agnes Bousquier wrote: 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
I am trying to compile the C++ program included. Unfortunately, when I
"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
I don't see any path in that. You had better use a -I option to tell the
compiler where the include files are.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html