Thread overview
build dll project use VisualD with the "Use MS-COFF object file..." setting selected failed
Aug 26, 2016
magicdmer
Aug 26, 2016
Daniel Kozak
Aug 26, 2016
magicdmer
Aug 26, 2016
rikki cattermole
Aug 26, 2016
magicdmer
Aug 26, 2016
Daniel Kozak
Aug 26, 2016
magicdmer
Aug 26, 2016
Daniel Kozak
August 26, 2016
I use VisualD create a windows dll project , and select the "Use MS-COFF object file fromat for win32" . when i build it ,it display the error follow ,look at the picture

I use dmd 2.071.1

https://s14.postimg.org/a4wcv74ct/image.png
August 26, 2016
That image is too small, so I can't  see it :)
Dne 26.8.2016 v 08:26 magicdmer via Digitalmars-d-learn napsal(a):
> I use VisualD create a windows dll project , and select the "Use MS-COFF object file fromat for win32" . when i build it ,it display the error follow ,look at the picture
>
> I use dmd 2.071.1
>
> https://s14.postimg.org/a4wcv74ct/image.png

August 26, 2016
On Friday, 26 August 2016 at 06:38:01 UTC, Daniel Kozak wrote:
> That image is too small, so I can't  see it :)
> Dne 26.8.2016 v 08:26 magicdmer via Digitalmars-d-learn napsal(a):
>> I use VisualD create a windows dll project , and select the "Use MS-COFF object file fromat for win32" . when i build it ,it display the error follow ,look at the picture
>>
>> I use dmd 2.071.1
>>
>> https://s14.postimg.org/a4wcv74ct/image.png

sorry,i post wrong url,look follow url, can you tell me how to modify the thread

https://s14.postimg.io/cyzi8n6j5/image.png
August 26, 2016
On 26/08/2016 6:52 PM, magicdmer wrote:
> On Friday, 26 August 2016 at 06:38:01 UTC, Daniel Kozak wrote:
>> That image is too small, so I can't  see it :)
>> Dne 26.8.2016 v 08:26 magicdmer via Digitalmars-d-learn napsal(a):
>>> I use VisualD create a windows dll project , and select the "Use
>>> MS-COFF object file fromat for win32" . when i build it ,it display
>>> the error follow ,look at the picture
>>>
>>> I use dmd 2.071.1
>>>
>>> https://s14.postimg.org/a4wcv74ct/image.png
>
> sorry,i post wrong url,look follow url, can you tell me how to modify
> the thread
>
> https://s14.postimg.io/cyzi8n6j5/image.png

Okay so your Windows language is non-english, that'll be it.
You need to be looking into the encoding that Visual Studio is using for you files. Something to do with the BOM or hasn't even been set to utf-8 isn't quite right.

If in doubt, convert via e.g. notepad++ and see what VS does.
August 26, 2016
On Friday, 26 August 2016 at 07:00:37 UTC, rikki cattermole wrote:
> Okay so your Windows language is non-english, that'll be it.
> You need to be looking into the encoding that Visual Studio is using for you files. Something to do with the BOM or hasn't even been set to utf-8 isn't quite right.
>
> If in doubt, convert via e.g. notepad++ and see what VS does.

it's utf8 without bom,  i don't select the "MS-COFF" all is right,i can build it successfully.
August 26, 2016

Dne 26.8.2016 v 08:52 magicdmer via Digitalmars-d-learn napsal(a):
> On Friday, 26 August 2016 at 06:38:01 UTC, Daniel Kozak wrote:
>> That image is too small, so I can't  see it :)
>> Dne 26.8.2016 v 08:26 magicdmer via Digitalmars-d-learn napsal(a):
>>> I use VisualD create a windows dll project , and select the "Use MS-COFF object file fromat for win32" . when i build it ,it display the error follow ,look at the picture
>>>
>>> I use dmd 2.071.1
>>>
>>> https://s14.postimg.org/a4wcv74ct/image.png
>
> sorry,i post wrong url,look follow url, can you tell me how to modify the thread
>
> https://s14.postimg.io/cyzi8n6j5/image.png
You can't modify the thread:

http://forum.dlang.org/help#about
August 26, 2016
Dne 26.8.2016 v 09:12 magicdmer via Digitalmars-d-learn napsal(a):

> On Friday, 26 August 2016 at 07:00:37 UTC, rikki cattermole wrote:
>> Okay so your Windows language is non-english, that'll be it.
>> You need to be looking into the encoding that Visual Studio is using for you files. Something to do with the BOM or hasn't even been set to utf-8 isn't quite right.
>>
>> If in doubt, convert via e.g. notepad++ and see what VS does.
>
> it's utf8 without bom,  i don't select the "MS-COFF" all is right,i can build it successfully.

can you try it from console?
something like dmd.exe -m32mscoff your_d_file.d

August 26, 2016
On Friday, 26 August 2016 at 07:21:55 UTC, Daniel Kozak wrote:
> Dne 26.8.2016 v 09:12 magicdmer via Digitalmars-d-learn can you try it from console?
> something like dmd.exe -m32mscoff your_d_file.d
same error , it's only dll project like this. console project can build successfully with
the "MS-COFF" setting.