-
AVIFile linker error
Hello,
I was wondering if anybody could help me out with an error I always get:
Trying to build the simple project below I always get "[Linker error] undefined reference to `AVIFileInit@0'"
I am Using Dev-C++ and added the libraries vfw32.lib and winmm.lib.
code:
#include <windows.h>
#include <iostream>
#include "vfw.h"
int main(int argc, char *argv[]){
AVIFileInit();
system("PAUSE");
return EXIT_SUCCESS;
}
I would really appreciate if someone could give me a short hint,
best regards,
slapy
-
Re: AVIFile linker error
You should the Vfw32.lib to the linker.
Cheers
-
Re: AVIFile linker error
yes, but that's what I did...it's not working
-
Re: AVIFile linker error
Can you post the whole project here? (Without the temporary files and debug/release directories)
Cheers
-
Re: AVIFile linker error
it Should work Include
Vfw32.lib
and use
#include<vfw.h> Now Clean your build delete your Debug and ove again run your Project.
hope this Will Work Now.
Thanx
-
Re: AVIFile linker error
If you're using Dev-cpp that means you're using MinGW, and mingw doesn't uses .lib files but .a files, so you should link to libwinmm.a and lib vfw32.a.