New to D, so excuse any possible oversight(s) & and the lengthy post.
Been at this awhile so I need some outside input.
Also, apologies in advance if I'm posting in the wrong place or thread.
The steps I took:
1. Grab DSFML & DSFML-C from their respective Githubs
2. Build DSFML-C using Cmake GUI 3.6.1 with:
https://sourceforge.net/projects/mingw-w64/3.
Checked BUILD_SHARED_LIBS &
UNCHECKED SFML_USE_STATIC_STD_LIBS
4. Following:
http://dsfml.com/docs/buildingfromsource.html4a. Built DSFML with
rdmd build
5. In Codeblocks before linking, a generic Hello World works fine.
6. For DMD under "Search Directories->Compiler I have:
- S:\DSFML-master\src
- S:\DSFMLC-master\build\src
7. For Linker I have:
- S:\DSFML-master\lib
- S:\DSFMLC-master\build\lib
8. Under "Linker Settings" I have:
- dsml-graphics
- dsfml-window
- dsfml-audio
- dsfml-network
- dsfml-system
Using the hello world test from:
http://dsfml.com/doc.htmlThe important stuff from my build log are:
dmd.exe -O -w -IS:\DSFML-master\src -IS:\DSFMLC-master\build\src -c hello.d -ofobj\Release\hello.obj
dmd.exe bin\Release\Test.exe obj\Release\hello.obj dsfml-graphics.lib dsfml-window.lib dsfml-audio.lib dsfml-network.lib dsfml-system.lib
OPTLINK (R) for Win32 Release 8.00.17
The issues:
dsfml-graphics.lib
Warning 2: File Not Found dsfml-graphics.lib
dsfml-window.lib
Warning 2: File Not Found dsfml-window.lib
dsfml-audio.lib
Warning 2: File Not Found dsfml-audio.lib
dsfml-network.lib
Warning 2: File Not Found dsfml-network.lib
dsfml-system.lib
Warning 2: File Not Found dsfml-system.lib
obj\Release\hello.obj(hello)
And the Errors [16]:
Error 42: Symbol Undefined _D5dsfml8graphics12renderstates12RenderStates7DefaultFNdZS5dsfml8graphics12renderstates12RenderStates
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics5color5Color3RedyS5dsfml8graphics5color5Color
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml6window15contextsettings15ContextSettings7DefaultxS5dsfml6window15contextsettings15ContextSettings
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics11circleshape11CircleShape7__ClassZ
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml6window5event5Event6__initZ
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics11circleshape11CircleShape6__ctorMFfkZC5dsfml8graphics11circleshape11CircleShape
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml6system7vector214__T7Vector2TfZ7Vector26__ctorMFNaNbNcNiNfffZS5dsfml6system7vector214__T7Vector2TfZ7Vector2
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics12renderwindow12RenderWindow6__ctorMFZC5dsfml8graphics12renderwindow12RenderWindow
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics5color5Color4BlueyS5dsfml8graphics5color5Color
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics5color5Color5GreenyS5dsfml8graphics5color5Color
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics14rectangleshape14R€ˆS€„6__ctorMFS€†¹6system7v€ƒ¦or214__T7V€†TfZ€ˆ‹ZC€¯è
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics14rectangleshape14RectangleShape7__ClassZ
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics5color5Color5BlackyS5dsfml8graphics5color5Color
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics12renderwindow12RenderWindow7__ClassZ
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml6window9videomode9VideoMode6__ctorMFNckkkZS5dsfml6window9videomode9VideoMode
obj\Release\hello.obj(hello)
Error 42: Symbol Undefined _D5dsfml8graphics12__ModuleInfoZ
--- errorlevel 16
Any help or advice is greatly appreciated, thank you.
Also any Dub-less solutions would be great.