Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant compile on windows #18

Open
ishaybee opened this issue Apr 19, 2024 · 1 comment
Open

cant compile on windows #18

ishaybee opened this issue Apr 19, 2024 · 1 comment

Comments

@ishaybee
Copy link

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 __imp__ZN3imf9SspClient4initEv'
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 __imp__ZN3imf9SspClient17setOnMetaCallbackERKSt8functionIFvPNS_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 __imp__ZN3imf9SspClient22setOnAudioDataCallbackERKSt8functionIFvPNS_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 __imp__ZN3imf4Loop4quitEv'
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 __imp__ZN3imf4Loop4initEv'
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 __imp__ZN3imf4LoopD1Ev'

@adahbingee
Copy link

adahbingee commented Jun 4, 2024

it seems like you compile using msys2 environment. change the compiler to visual studio works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants