Hello, I'm new
I've spend the whole yesterday getting an open source project to compile. After learning how to use cmake to create and format the source code for this project, I've encounter these error
||=== Build: all in Witch_Blast (compiler: GNU GCC Compiler) ===|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf6SpriteC1Ev'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf6Sprite10setTextureERKNS_7TextureEb'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZNK2sf6Sprite14getTextureRectEv'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf13Transformable11setPositionEff'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf13Transformable8setScaleEff'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf13Transformable8setScaleEff'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf13Transformable8setScaleEff'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf6Sprite14setTextureRectERKNS_4RectIiEE'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf13Transformable11setPositionEff'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf6Sprite8setColorERKNS_5ColorE'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf13Transformable8setScaleEff'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf5Color5WhiteE'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf6Sprite8setColorERKNS_5ColorE'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf6Sprite8setColorERKNS_5ColorE'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp|| undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'|
CMakeFiles\Witch_Blast.dir\objects.a(ArtefactDescriptionEntity.cpp.obj)ArtefactDescriptionEntity.cpp:(.text$_ZN2sf8DrawableD2Ev[__ZN2sf8DrawableD2Ev]+0xffff280e)||undefined reference to `_imp___ZTVN2sf8DrawableE'|
CMakeFiles\Witch_Blast.dir\build.make|1677|recipe for target 'Witch_Blast.exe' failed|
CMakeFiles\Makefile2|59|recipe for target 'CMakeFiles/Witch_Blast.dir/all' failed|
C:\Users\Hello PC\Documents\COPYTEST\Makefile|74|recipe for target 'all' failed|
||=== Build failed: 24 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|
Edited:
After I started to work on my own project, I concluded a possibility that this issue is related specifically to sfml version 2.2. Because when I run my sample code on sfml version 2.2, the __imp error did occurs and when my own sample code is run on version 2.1, the code compiled successfully. I still need to resolve this problem because the open source project I downloaded needs to be run on 2.2, also I want to try the latest version of sfml.
Here it is
-------------- Build: all in Witch_Blast (compiler: GNU GCC Compiler)---------------
Running command: C:/MinGW/bin/mingw32-make.exe -f "C:/Users/Hello PC/Documents/COPYTEST/Makefile" VERBOSE=1 all
"C:\Users\Hello PC\Downloads\cmake-3.2.2-win32-x86\bin\cmake.exe" -H"C:\Users\Hello PC\Downloads\witchblast-0.5" -B"C:\Users\Hello PC\Documents\COPYTEST" --check-build-system CMakeFiles\Makefile.cmake 0
"C:\Users\Hello PC\Downloads\cmake-3.2.2-win32-x86\bin\cmake.exe" -E cmake_progress_start "C:\Users\Hello PC\Documents\COPYTEST\CMakeFiles" "C:\Users\Hello PC\Documents\COPYTEST\CMakeFiles\progress.marks"
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 all
mingw32-make.exe[1]: Entering directory 'C:/Users/Hello PC/Documents/COPYTEST'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Witch_Blast.dir\build.make CMakeFiles/Witch_Blast.dir/depend
mingw32-make.exe[2]: Entering directory 'C:/Users/Hello PC/Documents/COPYTEST'
"C:\Users\Hello PC\Downloads\cmake-3.2.2-win32-x86\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" "C:\Users\Hello PC\Downloads\witchblast-0.5" "C:\Users\Hello PC\Downloads\witchblast-0.5" "C:\Users\Hello PC\Documents\COPYTEST" "C:\Users\Hello PC\Documents\COPYTEST" "C:\Users\Hello PC\Documents\COPYTEST\CMakeFiles\Witch_Blast.dir\DependInfo.cmake" --color=
mingw32-make.exe[2]: Leaving directory 'C:/Users/Hello PC/Documents/COPYTEST'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Witch_Blast.dir\build.make CMakeFiles/Witch_Blast.dir/build
mingw32-make.exe[2]: Entering directory 'C:/Users/Hello PC/Documents/COPYTEST'
Linking CXX executable Witch_Blast.exe
"C:\Users\Hello PC\Downloads\cmake-3.2.2-win32-x86\bin\cmake.exe" -E cmake_link_script CMakeFiles\Witch_Blast.dir\link.txt --verbose=1
"C:\Users\Hello PC\Downloads\cmake-3.2.2-win32-x86\bin\cmake.exe" -E remove -f CMakeFiles\Witch_Blast.dir/objects.a
C:\MinGW\bin\ar.exe cr CMakeFiles\Witch_Blast.dir/objects.a @CMakeFiles\Witch_Blast.dir\objects1.rsp
C:\MinGW\bin\g++.exe -Wl,--whole-archive CMakeFiles\Witch_Blast.dir/objects.a -Wl,--no-whole-archive -o Witch_Blast.exe -Wl,--out-implib,libWitch_Blast.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\Witch_Blast.dir\linklibs.rsp
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x7e): undefined reference to `_imp___ZN2sf6SpriteC1Ev'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x138): undefined reference to `_imp___ZN2sf6Sprite10setTextureERKNS_7TextureEb'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x14c): undefined reference to `_imp___ZNK2sf6Sprite14getTextureRectEv'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x189): undefined reference to `_imp___ZN2sf13Transformable11setPositionEff'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x1c0): undefined reference to `_imp___ZN2sf13Transformable8setScaleEff'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x402): undefined reference to `_imp___ZN2sf13Transformable8setScaleEff'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x427): undefined reference to `_imp___ZN2sf13Transformable8setScaleEff'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x4ff): undefined reference to `_imp___ZN2sf6Sprite14setTextureRectERKNS_4RectIiEE'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x522): undefined reference to `_imp___ZN2sf13Transformable11setPositionEff'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x589): undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x5a1): undefined reference to `_imp___ZN2sf6Sprite8setColorERKNS_5ColorE'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x5e2): undefined reference to `_imp___ZN2sf13Transformable8setScaleEff'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x5ec): undefined reference to `_imp___ZN2sf5Color5WhiteE'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x675): undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x696): undefined reference to `_imp___ZN2sf6Sprite8setColorERKNS_5ColorE'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x6ae): undefined reference to `_imp___ZN2sf6Sprite8setColorERKNS_5ColorE'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x6c1): undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x6d0): undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x7d4): undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text+0x7e3): undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'
CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj):ArtefactDescriptionEntity.cpp:(.text$_ZN2sf8DrawableD2Ev[__ZN2sf8DrawableD2Ev]+0xffff280e): undefined reference to `_imp___ZTVN2sf8DrawableE'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: CMakeFiles\Witch_Blast.dir/objects.a(ArtefactDescriptionEntity.cpp.obj): bad reloc address 0xe in section `.text$_ZN2sf8DrawableD2Ev[__ZN2sf8DrawableD2Ev]'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[2]: *** [Witch_Blast.exe] Error 1
mingw32-make.exe[1]: *** [CMakeFiles/Witch_Blast.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
CMakeFiles\Witch_Blast.dir\build.make:1677: recipe for target 'Witch_Blast.exe' failed
mingw32-make.exe[2]: Leaving directory 'C:/Users/Hello PC/Documents/COPYTEST'
CMakeFiles\Makefile2:59: recipe for target 'CMakeFiles/Witch_Blast.dir/all' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/Hello PC/Documents/COPYTEST'
C:/Users/Hello PC/Documents/COPYTEST/Makefile:74: recipe for target 'all' failed
Process terminated with status 2 (0 minute(s), 3 second(s))
24 error(s), 0 warning(s) (0 minute(s), 3 second(s))