|
-
June 19th, 2006, 04:35 PM
#1
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
-
June 20th, 2006, 02:02 AM
#2
Re: AVIFile linker error
You should the Vfw32.lib to the linker.
Cheers
-
June 20th, 2006, 12:56 PM
#3
Re: AVIFile linker error
yes, but that's what I did...it's not working
-
June 20th, 2006, 01:08 PM
#4
Re: AVIFile linker error
Can you post the whole project here? (Without the temporary files and debug/release directories)
Cheers
-
June 21st, 2006, 12:22 AM
#5
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
-
June 22nd, 2006, 08:15 AM
#6
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|