www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - build dll project use VisualD with the "Use MS-COFF object file..."

reply magicdmer <magicdmer gmail.com> writes:
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
Aug 25 2016
parent reply Daniel Kozak via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
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
Aug 25 2016
parent reply magicdmer <magicdmer gmail.com> writes:
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
Aug 25 2016
next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
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.
Aug 26 2016
parent reply magicdmer <magicdmer gmail.com> writes:
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.
Aug 26 2016
parent reply Daniel Kozak via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
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
Aug 26 2016
parent magicdmer <magicdmer gmail.com> writes:
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.
Aug 26 2016
prev sibling parent Daniel Kozak via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
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
Aug 26 2016