1
General / Re: C++ Problem
« on: April 14, 2015, 06:00:25 pm »
Thanks
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
C:\SFML-2.2\lib\libsfml-system-s.a(SleepImpl.cpp.obj):SleepImpl.cpp || undefined reference to `_imp__timeGetDevCaps@8'|
C:\SFML-2.2\lib\libsfml-system-s.a(SleepImpl.cpp.obj):SleepImpl.cpp || undefined reference to `_imp__timeBeginPeriod@4'|
C:\SFML-2.2\lib\libsfml-system-s.a(SleepImpl.cpp.obj):SleepImpl.cpp || undefined reference to `_imp__timeEndPeriod@4'|
||=== Build: Debug in MTG (compiler: GNU GCC Compiler) ===|error...
C:\SFML-2.2\lib\libglew.a(glew.c.o):glew.c || undefined reference to `wglGetCurrentDC@0'|
C:\SFML-2.2\lib\libglew.a(glew.c.o):glew.c || undefined reference to `wglGetCurrentDC@0'|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Look at the tutorial, the way it's listed there is an order that works.
It usually is if x depends on y then x comes before y.
||=== Build: Debug in MTG (compiler: GNU GCC Compiler) ===|
) || undefined reference to `wglGetCurrentDC@0'|
C:\SFML-2.2\lib\libglew.a(glew.c.o):glew.c || undefined reference to `wglGetCurrentDC@0'|
C:\SFML-2.2\lib\libsfml-system-s-d.a(SleepImpl.cpp.obj) || In function `ZN2sf4priv9sleepImplENS_4TimeE':|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp|41| undefined reference to `_imp__timeGetDevCaps@8'|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp|44| undefined reference to `_imp__timeBeginPeriod@4'|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp|50| undefined reference to `_imp__timeEndPeriod@4'|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp
To me it looks like he declared the libs in a wrong order.
||=== Build: Debug in MTG (compiler: GNU GCC Compiler) ===|
C:\SFML-2.2\lib\libsfml-system-s-d.a(SleepImpl.cpp.obj)||In function `ZN2sf4priv9sleepImplENS_4TimeE':|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp|41| undefined reference to `_imp__timeGetDevCaps@8'|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp|44| undefined reference to `_imp__timeBeginPeriod@4'|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp|50| undefined reference to `_imp__timeEndPeriod@4'|
C:\SFML-2.2\lib\libglew.a(glew.c.o):glew.c || undefined reference to `wglGetCurrentDC@0'|
C:\SFML-2.2\lib\libglew.a(glew.c.o):glew.c || undefined reference to `wglGetCurrentDC@0'|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|