now it gives a bunch of undefined reference errors for "VBAMovie" type functions. by the way, the compiler its using i think is g++.
the whole thing looks like this:
SDL.o: In function `main':
SDL.cpp:(.text+0x6a4b): undefined reference to `VBAMovieCreate(char const*, char const*, unsigned char, unsigned char, unsigned char)'
SDL.cpp:(.text+0x6a61): undefined reference to `VBAMovieOpen(char const*, signed char)'
SDL.cpp:(.text+0x6a77): undefined reference to `VBAMovieOpen(char const*, signed char)'
GBA.o: In function `CPUReset()':
GBA.cpp:(.text+0x967): undefined reference to `VBAMovieSignalReset()'
GBA.o: In function `CPULoop(int)':
GBA.cpp:(.text+0x4b94e): undefined reference to `systemFrame(int)'
GBA.o: In function `CPUWriteStateToStream(void*)':
GBA.cpp:(.text+0x4e9eb): undefined reference to `VBAMovieActive()'
GBA.cpp:(.text+0x4ea34): undefined reference to `VBAMovieFreeze(unsigned char**, unsigned long*)'
GBA.o: In function `CPUReadStateFromStream(void*)':
GBA.cpp:(.text+0x4f346): undefined reference to `VBAMovieActive()'
GBA.cpp:(.text+0x4f431): undefined reference to `VBAMovieUnfreeze(unsigned char const*, unsigned long)'
GBA.cpp:(.text+0x4f456): undefined reference to `VBAMovieActive()'
GBA.cpp:(.text+0x4f7a0): undefined reference to `VBAUpdateFrameCountDisplay()'
RTC.o: In function `rtcWrite(unsigned int, unsigned short)':
RTC.cpp:(.text+0x3db): undefined reference to `VBAMovieActive()'
RTC.cpp:(.text+0x3e4): undefined reference to `VBAMovieLoading()'
RTC.cpp:(.text+0x3ff): undefined reference to `VBAMovieGetId()'
RTC.cpp:(.text+0x406): undefined reference to `VBAMovieGetFrameCounter()'
RTC.cpp:(.text+0x4e0): undefined reference to `VBAMovieActive()'
RTC.cpp:(.text+0x4e9): undefined reference to `VBAMovieLoading()'
RTC.cpp:(.text+0x504): undefined reference to `VBAMovieGetId()'
RTC.cpp:(.text+0x50b): undefined reference to `VBAMovieGetFrameCounter()'
../gb/libgb.a(GB.o): In function `gbWriteSaveStateToStream(void*)':
GB.cpp:(.text+0x18f8): undefined reference to `VBAMovieActive()'
GB.cpp:(.text+0x1941): undefined reference to `VBAMovieFreeze(unsigned char**, unsigned long*)'
../gb/libgb.a(GB.o): In function `gbReadBatteryFile(char const*)':
GB.cpp:(.text+0x25c7): undefined reference to `VBAMovieActive()'
GB.cpp:(.text+0x25d0): undefined reference to `VBAMovieLoading()'
GB.cpp:(.text+0x25eb): undefined reference to `VBAMovieGetId()'
GB.cpp:(.text+0x25f2): undefined reference to `VBAMovieGetFrameCounter()'
GB.cpp:(.text+0x2789): undefined reference to `VBAMovieActive()'
GB.cpp:(.text+0x2792): undefined reference to `VBAMovieLoading()'
GB.cpp:(.text+0x27ad): undefined reference to `VBAMovieGetId()'
GB.cpp:(.text+0x27b4): undefined reference to `VBAMovieGetFrameCounter()'
../gb/libgb.a(GB.o): In function `gbReset()':
GB.cpp:(.text+0x30f6): undefined reference to `VBAMovieSignalReset()'
../gb/libgb.a(GB.o): In function `gbReadSaveStateFromStream(void*)':
GB.cpp:(.text+0x93bf): undefined reference to `VBAMovieActive()'
GB.cpp:(.text+0x94aa): undefined reference to `VBAMovieUnfreeze(unsigned char const*, unsigned long)'
GB.cpp:(.text+0x94cf): undefined reference to `VBAMovieActive()'
GB.cpp:(.text+0x96d7): undefined reference to `VBAUpdateFrameCountDisplay()'
../gb/libgb.a(GB.o): In function `gbEmulate(int)':
GB.cpp:(.text+0xa806): undefined reference to `systemFrame(int)'
GB.cpp:(.text+0xb35c): undefined reference to `systemFrame(int)'
../gb/libgb.a(gbMemory.o): In function `memoryUpdateMBC3Clock()':
gbMemory.cpp:(.text+0x34eb): undefined reference to `VBAMovieActive()'
gbMemory.cpp:(.text+0x34f4): undefined reference to `VBAMovieLoading()'
gbMemory.cpp:(.text+0x350f): undefined reference to `VBAMovieGetId()'
gbMemory.cpp:(.text+0x3516): undefined reference to `VBAMovieGetFrameCounter()'
../gb/libgb.a(gbMemory.o): In function `mapperMBC3RAM(unsigned short, unsigned char)':
gbMemory.cpp:(.text+0x3a0e): undefined reference to `VBAMovieActive()'
gbMemory.cpp:(.text+0x3a17): undefined reference to `VBAMovieLoading()'
gbMemory.cpp:(.text+0x3a32): undefined reference to `VBAMovieGetId()'
gbMemory.cpp:(.text+0x3a39): undefined reference to `VBAMovieGetFrameCounter()'
../gb/libgb.a(gbSGB.o): In function `gbSgbPicture()':
gbSGB.cpp:(.text+0x1377): undefined reference to `VBAMovieSignalIgnoreNextReset()'