Connecting Tech Pros Worldwide Forums | Help | Site Map

VFW.h link error

Helen
Guest
 
Posts: n/a
#1: Nov 13 '05

Hi I am trying to compile a package of avi to mpeg1 C source codes
But I got the link error
I searched actually my VFW.h and Vfw32.lib are all in the directory
what should I do
thanks a lot
Linking...
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIFileExit@0
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIFileRelease@4
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIStreamGetFrameC
lose@4
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIStreamReadForma
t@16
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIStreamInfoA@12
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIStreamGetFrame@
8
Readpic.obj : error LNK2001: unresolved external symbol _AVIStreamGetFrame@8

Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIStreamGetFrameO
pen@8
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIFileGetStream@1
6
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIFileInfoA@12
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIFileOpenA@16
Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIFileInit@0
Encode.obj : error LNK2001: unresolved external symbol _AVIStreamRead@28
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@
16
Debug/AviMp1.exe : fatal error LNK1120: 13 unresolved externals
Error executing link.exe.
AviMp1.exe - 15 error(s), 0 warning(s)





Richard Heathfield
Guest
 
Posts: n/a
#2: Nov 13 '05

re: VFW.h link error


Helen wrote:
[color=blue]
> Hi I am trying to compile a package of avi to mpeg1 C source codes
> But I got the link error[/color]

This is really an implementation question rather than a language question.
Please direct future implementation questions to newsgroups devoted to your
implementation.
[color=blue]
> I searched actually my VFW.h and Vfw32.lib are all in the directory
> what should I do
> thanks a lot
> Linking...
> Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIFileExit@0[/color]

Did you tell your implementation to link Vfw32.lib? Having it in the same
directory is not sufficient.

<snip>
[color=blue]
> LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol
> _WinMain@ 16[/color]

Tell your implementation that you want a console application, not a GUI
program.

--
Richard Heathfield : binary@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Jack Klein
Guest
 
Posts: n/a
#3: Nov 13 '05

re: VFW.h link error


On Mon, 17 Nov 2003 18:22:16 -0600, "Helen" <junciu@yahoo.com> wrote
in comp.lang.c:
[color=blue]
>
> Hi I am trying to compile a package of avi to mpeg1 C source codes
> But I got the link error
> I searched actually my VFW.h and Vfw32.lib are all in the directory
> what should I do
> thanks a lot[/color]

Around here, members of the VFW (Veterans of Foreign Wars) would
probably be very unhappy with anyone who tried to link them to mpeg1
source code.

Considering what it was they did that qualified them to join the VFW,
even if it was some time ago for many of them, I personally wouldn't
want to try to link them against their wishes.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Closed Thread