cae
13th November 2009, 09:54
Hi everyone,
i've started programming (or trying it) a week ago with QT Creator 1.2.1 based on QT 4.5.3 32bit on a Windows SP3, i runed configure.exe on the qt command promt, i had no problems compiling examples or simple programs, but now i have to continue with someone elses work, and there begins my problem.
The program uses an Aviutils h & cpp with some structs and functions,and this Aviutils.cpp has an #include <vfw.h> .
Finally, when i try to build de project i recive this error
./release\AviUtils.o:AviUtils.cpp:(.text+0xd): undefined reference to `AVIFileInit@0'
./release\AviUtils.o:AviUtils.cpp:(.text+0x51): undefined reference to `AVIFileOpenW@16'
./release\AviUtils.o:AviUtils.cpp:(.text+0xe5): undefined reference to `AVIFileExit@0'
./release\AviUtils.o:AviUtils.cpp:(.text+0x14a): undefined reference to `AVIFileExit@0'
.
.
.
I tried adding to de .pro file
win32:LIBS += -L \
C:\QT\2009.04\mingw\lib\libvfw32.a
I set on Tools->Options->CMake = C:\Qt\2009.04\mingw\bin\mingw32-g++.exe
There are serveral .exe files inside that folder but i tried many of them with the same result.
i've readed many problems that could have the same solution but... nothing worked...
I think the problem is that the program doesnt find de "cpp" of vfw.h wich is somthing like a dynamic library that maybe i dont know how to link it to the program....
Can any body help me?
i've started programming (or trying it) a week ago with QT Creator 1.2.1 based on QT 4.5.3 32bit on a Windows SP3, i runed configure.exe on the qt command promt, i had no problems compiling examples or simple programs, but now i have to continue with someone elses work, and there begins my problem.
The program uses an Aviutils h & cpp with some structs and functions,and this Aviutils.cpp has an #include <vfw.h> .
Finally, when i try to build de project i recive this error
./release\AviUtils.o:AviUtils.cpp:(.text+0xd): undefined reference to `AVIFileInit@0'
./release\AviUtils.o:AviUtils.cpp:(.text+0x51): undefined reference to `AVIFileOpenW@16'
./release\AviUtils.o:AviUtils.cpp:(.text+0xe5): undefined reference to `AVIFileExit@0'
./release\AviUtils.o:AviUtils.cpp:(.text+0x14a): undefined reference to `AVIFileExit@0'
.
.
.
I tried adding to de .pro file
win32:LIBS += -L \
C:\QT\2009.04\mingw\lib\libvfw32.a
I set on Tools->Options->CMake = C:\Qt\2009.04\mingw\bin\mingw32-g++.exe
There are serveral .exe files inside that folder but i tried many of them with the same result.
i've readed many problems that could have the same solution but... nothing worked...
I think the problem is that the program doesnt find de "cpp" of vfw.h wich is somthing like a dynamic library that maybe i dont know how to link it to the program....
Can any body help me?