April 05, 2014
On Saturday, 5 April 2014 at 14:40:49 UTC, Zaggy1024 wrote:
> On Saturday, 5 April 2014 at 03:41:21 UTC, evilrat wrote:
>>
>> sorry for such obvious comment. i must say that library files is full path or just filename.lib, and library search path is where .lib's can be found. and keep in mind that most(if not all) project options are delimited with spacebars only, not semicolon.
>>
>> so if you have such paths like
>> "C:\Some Location\lib;D:\other\lib"
>> you shold try to split them like this
>> "C:\Some Location\lib" D:\other\lib
>
> I guess I should just show you how I have it set up right now...
>
> Compiler config:
> http://i.imgur.com/laRKpZM.png
>
> Linker config:
> http://i.imgur.com/CBdzNCO.png
>
> If I'm correct, it should be finding the .lib files from C:/DSFML/prebuilt, and the source in /src. Am I doing something wrong?

you forgot to link libs :)
add necessary .lib file names to "library files" field, in this case it should be something like "dsfml.lib" or whatever, there may be also multiple libs.

p.s. you don't do any C/C++ ever, right? :)
April 05, 2014
On Saturday, 5 April 2014 at 15:33:59 UTC, evilrat wrote:
> On Saturday, 5 April 2014 at 14:40:49 UTC, Zaggy1024 wrote:
>> On Saturday, 5 April 2014 at 03:41:21 UTC, evilrat wrote:
>>>
>>> sorry for such obvious comment. i must say that library files is full path or just filename.lib, and library search path is where .lib's can be found. and keep in mind that most(if not all) project options are delimited with spacebars only, not semicolon.
>>>
>>> so if you have such paths like
>>> "C:\Some Location\lib;D:\other\lib"
>>> you shold try to split them like this
>>> "C:\Some Location\lib" D:\other\lib
>>
>> I guess I should just show you how I have it set up right now...
>>
>> Compiler config:
>> http://i.imgur.com/laRKpZM.png
>>
>> Linker config:
>> http://i.imgur.com/CBdzNCO.png
>>
>> If I'm correct, it should be finding the .lib files from C:/DSFML/prebuilt, and the source in /src. Am I doing something wrong?
>
> you forgot to link libs :)
> add necessary .lib file names to "library files" field, in this case it should be something like "dsfml.lib" or whatever, there may be also multiple libs.
>
> p.s. you don't do any C/C++ ever, right? :)

All right, I put the filenames for the library files in that field, with spaces separating them:

http://i.imgur.com/kWBVUmp.png

I'm still getting the same error as before. :\

In answer to your question, no, I don't do C++ programming, but I've learned Java and various other OO programming languages, and I wanted to try starting a project in a language that compiles to native code, and D seemed like a good option.
April 05, 2014
On Saturday, 5 April 2014 at 16:33:21 UTC, Zaggy1024 wrote:
> On Saturday, 5 April 2014 at 15:33:59 UTC, evilrat wrote:
>> On Saturday, 5 April 2014 at 14:40:49 UTC, Zaggy1024 wrote:
>>> On Saturday, 5 April 2014 at 03:41:21 UTC, evilrat wrote:
>>>>
>>>> sorry for such obvious comment. i must say that library files is full path or just filename.lib, and library search path is where .lib's can be found. and keep in mind that most(if not all) project options are delimited with spacebars only, not semicolon.
>>>>
>>>> so if you have such paths like
>>>> "C:\Some Location\lib;D:\other\lib"
>>>> you shold try to split them like this
>>>> "C:\Some Location\lib" D:\other\lib
>>>
>>> I guess I should just show you how I have it set up right now...
>>>
>>> Compiler config:
>>> http://i.imgur.com/laRKpZM.png
>>>
>>> Linker config:
>>> http://i.imgur.com/CBdzNCO.png
>>>
>>> If I'm correct, it should be finding the .lib files from C:/DSFML/prebuilt, and the source in /src. Am I doing something wrong?
>>
>> you forgot to link libs :)
>> add necessary .lib file names to "library files" field, in this case it should be something like "dsfml.lib" or whatever, there may be also multiple libs.
>>
>> p.s. you don't do any C/C++ ever, right? :)
>
> All right, I put the filenames for the library files in that field, with spaces separating them:
>
> http://i.imgur.com/kWBVUmp.png
>
> I'm still getting the same error as before. :\
>
> In answer to your question, no, I don't do C++ programming, but I've learned Java and various other OO programming languages, and I wanted to try starting a project in a language that compiles to native code, and D seemed like a good option.

you can actualy leave library search path as C:/DSFML/prebuilt and add library names "dsmfl-audio.lib" and other.

but this error(something about module info) may be due different compiler versions(e.g. prebuild libs was built with dmd 2.064, and ur dmd is 2.065)(1),  so you better rebuild that dsfml and try again.


btw i recommend use dub[1] if you don't already. it is easy to maintain any changes with it, dub can generate VisualD projects, and mono-d could open dub packages directly.


(1) module info changes almost every releas
[1] http://code.dlang.org/download
May 14, 2014
On Saturday, 5 April 2014 at 16:44:29 UTC, evilrat wrote:
> btw i recommend use dub[1] if you don't already. it is easy to maintain any changes with it, dub can generate VisualD

Hi. (And at first, sorry for my bad English). I have same problem
with same library :)
It my first project in D. And first project with SFML (DSFML of
course).

I use dub for making Visual Studio project (I use VS2010). Then
open it and set up project settings:
general http://goo.gl/QuM2QE
compiler http://goo.gl/6GR2VZ
linker http://goo.gl/2XISxF

Autocomplete works correctly. http://goo.gl/LQf13s

When I try build project, here is error:
>Error 42: Symbol Undefined _D5dsfml8graphics12__ModuleInfoZ
How I can resolve it?

> projects, and mono-d could open dub packages directly.
Btw, mono-d works and I alreday start project with it. But here I
do not have option for debugging:
http://goo.gl/NGZ3Oh (in Visual Studio debugger works fine).
May 17, 2014
On Wednesday, 14 May 2014 at 08:51:00 UTC, Dmitry wrote:
> When I try build project, here is error:
>>Error 42: Symbol Undefined _D5dsfml8graphics12__ModuleInfoZ
> How I can resolve it?

do you build it manually or use some kind of shipped .lib file? in latter case you'd better build it yourself.
May 17, 2014
On Saturday, 17 May 2014 at 06:38:07 UTC, evilrat wrote:
> do you build it manually or use some kind of shipped .lib file? in latter case you'd better build it yourself.
But this .lib works with mono-d correctly.

When I try use myself builded .lib, I have 140 linker errors (Error 42: Symbol Undefined ...)
May 17, 2014
On Saturday, 17 May 2014 at 08:19:35 UTC, Dmitry wrote:
> On Saturday, 17 May 2014 at 06:38:07 UTC, evilrat wrote:
>> do you build it manually or use some kind of shipped .lib file? in latter case you'd better build it yourself.
> But this .lib works with mono-d correctly.
>
> When I try use myself builded .lib, I have 140 linker errors (Error 42: Symbol Undefined ...)

dub tracks project dependencies and rebuild them automatically if needed.

and since there is not only module info symbol "missing" it may be something wrong with VisualD path to this lib or link args.
June 06, 2014
I understood problem. It needed to generate the project (dub generate visuald) each time after adding/changing dependencies in json. And then only add path to libs.

Little tutorial here https://stackoverflow.com/questions/23697532/dsfml-building-error-visuald/24074566
1 2
Next ›   Last »