Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: underfined reference to...  (Read 9962 times)

0 Members and 1 Guest are viewing this topic.

mangsadwa

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
underfined reference to...
« on: May 01, 2018, 08:49:20 pm »
I follow this clip



and this is my build log

-------------- Build: Debug in sfmltest (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -LC:\Users\ASUS\Desktop\SFML-2.4.2\lib -o bin\Debug\sfmltest.exe obj\Debug\main.o   -lsfml-graphics-d -lsfml-audio-d -lsfml-network-d -lsfml-window-d -lsfml-system-d
obj\Debug\main.o: In function `main':
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:5: undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:5: undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:5: undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:6: undefined reference to `_imp___ZN2sf11CircleShapeC1Efj'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:7: undefined reference to `_imp___ZN2sf5Color5GreenE'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:7: undefined reference to `_imp___ZN2sf5Shape12setFillColorERKNS_5ColorE'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:15: undefined reference to `_imp___ZN2sf6Window5closeEv'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:12: undefined reference to `_imp___ZN2sf6Window9pollEventERNS_5EventE'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:18: undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:18: undefined reference to `_imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:19: undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:19: undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:20: undefined reference to `_imp___ZN2sf6Window7displayEv'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:9: undefined reference to `_imp___ZNK2sf6Window6isOpenEv'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:23: undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
C:/Users/ASUS/Desktop/sfmltest/sfmltest/main.cpp:23: undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
obj\Debug\main.o: In function `ZN2sf11CircleShapeD1Ev':
C:/Users/ASUS/Desktop/SFML-2.4.2/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `_imp___ZTVN2sf11CircleShapeE'
C:/Users/ASUS/Desktop/SFML-2.4.2/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `_imp___ZTVN2sf11CircleShapeE'
C:/Users/ASUS/Desktop/SFML-2.4.2/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `_imp___ZN2sf5ShapeD2Ev'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
20 error(s), 0 warning(s) (0 minute(s), 0 second(s))

c0d3r9

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: underfined reference to...
« Reply #1 on: May 01, 2018, 10:52:01 pm »
It seems that your entries in the codeblocks linker settings are not in the right order.
I could be wrong.