Open ishaybee opened 7 months ago
g++ -o test example\libssp_test.cpp -I C:\Users\ishaybee\sources\libssp\include\ -L C:\Users\ishaybee\sources\libssp\lib\win_x64_vs2017 -std=c++14 -lssp -Wl,--enable-auto-import give me C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x249): undefined reference to __imp__ZN3imf9SspClientC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_4LoopEytj' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x263): undefined reference toimpZN3imf9SspClient4initEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x2a5): undefined reference to __imp__ZN3imf9SspClient21setOnH264DataCallbackERKSt8functionIFvPNS_11SspH264DataEEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x308): undefined reference toimpZN3imf9SspClient17setOnMetaCallbackERKSt8functionIFvPNS_12SspVideoMetaEPNS_12SspAudioMetaEPNS_7SspMetaEEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x351): undefined reference to __imp__ZN3imf9SspClient25setOnDisconnectedCallbackERKSt8functionIFvvEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x3a7): undefined reference toimpZN3imf9SspClient22setOnAudioDataCallbackERKSt8functionIFvPNS_12SspAudioDataEEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x3c6): undefined reference to __imp__ZN3imf9SspClient5startEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoopD1Ev[_ZN3imf10ThreadLoopD1Ev]+0x2e): undefined reference toimpZN3imf4Loop4quitEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoop3runEv[_ZN3imf10ThreadLoop3runEv]+0x31): undefined reference to __imp__ZN3imf4LoopC1Ev' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoop3runEv[_ZN3imf10ThreadLoop3runEv]+0x58): undefined reference toimpZN3imf4Loop4initEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoop3runEv[_ZN3imf10ThreadLoop3runEv]+0xa3): undefined reference to __imp__ZN3imf4Loop4loopEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZNKSt14default_deleteIN3imf4LoopEEclEPS1_[_ZNKSt14default_deleteIN3imf4LoopEEclEPS1_]+0x22): undefined reference toimpZN3imf4LoopD1Ev'
__imp__ZN3imf9SspClientC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_4LoopEytj' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x263): undefined reference to
__imp__ZN3imf9SspClient21setOnH264DataCallbackERKSt8functionIFvPNS_11SspH264DataEEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x308): undefined reference to
__imp__ZN3imf9SspClient25setOnDisconnectedCallbackERKSt8functionIFvvEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x3a7): undefined reference to
__imp__ZN3imf9SspClient5startEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoopD1Ev[_ZN3imf10ThreadLoopD1Ev]+0x2e): undefined reference to
__imp__ZN3imf4LoopC1Ev' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoop3runEv[_ZN3imf10ThreadLoop3runEv]+0x58): undefined reference to
__imp__ZN3imf4Loop4loopEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZNKSt14default_deleteIN3imf4LoopEEclEPS1_[_ZNKSt14default_deleteIN3imf4LoopEEclEPS1_]+0x22): undefined reference to
it seems like you compile using msys2 environment. change the compiler to visual studio works for me.
g++ -o test example\libssp_test.cpp -I C:\Users\ishaybee\sources\libssp\include\ -L C:\Users\ishaybee\sources\libssp\lib\win_x64_vs2017 -std=c++14 -lssp -Wl,--enable-auto-import give me C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x249): undefined reference to
__imp__ZN3imf9SspClientC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_4LoopEytj' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x263): undefined reference to
impZN3imf9SspClient4initEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x2a5): undefined reference to__imp__ZN3imf9SspClient21setOnH264DataCallbackERKSt8functionIFvPNS_11SspH264DataEEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x308): undefined reference to
impZN3imf9SspClient17setOnMetaCallbackERKSt8functionIFvPNS_12SspVideoMetaEPNS_12SspAudioMetaEPNS_7SspMetaEEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x351): undefined reference to__imp__ZN3imf9SspClient25setOnDisconnectedCallbackERKSt8functionIFvvEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x3a7): undefined reference to
impZN3imf9SspClient22setOnAudioDataCallbackERKSt8functionIFvPNS_12SspAudioDataEEE' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text+0x3c6): undefined reference to__imp__ZN3imf9SspClient5startEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoopD1Ev[_ZN3imf10ThreadLoopD1Ev]+0x2e): undefined reference to
impZN3imf4Loop4quitEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoop3runEv[_ZN3imf10ThreadLoop3runEv]+0x31): undefined reference to__imp__ZN3imf4LoopC1Ev' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoop3runEv[_ZN3imf10ThreadLoop3runEv]+0x58): undefined reference to
impZN3imf4Loop4initEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZN3imf10ThreadLoop3runEv[_ZN3imf10ThreadLoop3runEv]+0xa3): undefined reference to__imp__ZN3imf4Loop4loopEv' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\ishaybee\AppData\Local\Temp\cc64d30Y.o:libssp_test.cp:(.text$_ZNKSt14default_deleteIN3imf4LoopEEclEPS1_[_ZNKSt14default_deleteIN3imf4LoopEEclEPS1_]+0x22): undefined reference to
impZN3imf4LoopD1Ev'