Re: what is mean? ( Offset 78887H Record Type 00C3)
On Saturday, 19 November 2016 at 09:35:33 UTC, Basile B. wrote: Is the message is about double definition ? I knew the cause. You were right. It is my mistake. I'm really sorry.
Re: what is mean? ( Offset 78887H Record Type 00C3)
On Saturday, 19 November 2016 at 09:35:33 UTC, Basile B. wrote: No, OPTLINK is the right linker for DMD32 (because of the object format, OMF), unless you use the -mscoff32 switch (which has for effect to produce another object format, that OPTLINK doesn't know to link). Your issue is likely not a linker issue. Is the message is about double definition ? I do not think so. When i using dmd for directly("dmd code.d"), get this message. and using with dub, get here message: Linking... Can't run '\bin\link.exe', check PATH dmd failed with exit code -1. I think I made a mistake, but I do not know what it is...
Re: what is mean? ( Offset 78887H Record Type 00C3)
On Saturday, 19 November 2016 at 08:29:08 UTC, Era Scarecrow wrote: On Saturday, 19 November 2016 at 07:12:49 UTC, Nicholas Wilson wrote: If you're using x64 then you should be using the microsoft linker. are you invoking the linker manually? I would guess that some files are old and compiled separately, and the source was changed at some point. But we don't have source or anything to compare against. In fact, we have been using DMDs for some time, and this has happened since we installed the new DMD.
Re: what is mean? ( Offset 78887H Record Type 00C3)
On Saturday, 19 November 2016 at 07:12:49 UTC, Nicholas Wilson wrote: If you're using x64 then you should be using the microsoft linker. ok are you invoking the linker manually? no... So, I got msbuild.zip from another website and found link.exe. Can I replace this with "C:\D\dmd2\windows\bin\link.exe"? Please let me know more.
what is mean? ( Offset 78887H Record Type 00C3)
hello. i got a problem when i build my source code(windows7 x64 / DMD32 D Compiler v2.072.0), here: OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html main.obj(main) Offset 78887H Record Type 00C3 Error 1: Previous Definition Different : _D4Xaru8logArrayFAyaAAyaZv Error: linker exited with status 337446008 what is mean? i don't understand.
Re: Bast64URL Error; Invalid character
On Saturday, 4 June 2016 at 15:27:53 UTC, xky wrote: Hi! First, thank you to those who always answers. I got some DataURL string(it's png image) like this... [...] Oh, I make mistakes. "+" Character is in the data URL scheme. But the error is still. Thanks.
Bast64URL Error; Invalid character
Hi! First, thank you to those who always answers. I got some DataURL string(it's png image) like this... So, i used std.base64 library, and this is my test code. import std.stdio; import std.base64; void main() { string data = "iVBORw0KGgo... blah blah blah... example=="; auto bin = Base64URL.decode( data ); File f = File("index.png", "wb"); f.rawWrite(bin); f.close(); } And... get this error. std.base64.Base64Exception@C:\D\dmd2\windows\bin\..\..\src\phobos\std\base64.d(1690): Invalid character: + I tried finding "+" character, but i coudn't find it at original dataurl. What is my problem? Regards,
Re: Had not Dllimport in D?
On Sunday, 6 March 2016 at 14:20:34 UTC, WebFreak001 wrote: On Sunday, 6 March 2016 at 14:12:35 UTC, xky wrote: First, I really sorry my bad english. I just want to using Ruby dll file(msvcrt-ruby220.dll). D can import and use functions from a DLL but you are using a C# library, which is probably not going to work. D can only call functions from DLLs with a C or D interface. If you want to make your own shared libraries or use some C DLLs check these links: http://wiki.dlang.org/Win32_DLLs_in_D (native .dll -> windows) https://dlang.org/dll-linux.html (shared object .so -> linux) https://github.com/DerelictOrg/DerelictUtil (library for loading dll functions on multiple platforms) DerelictUtil looks like useful for me. Thank you. :-)
Re: Had not Dllimport in D?
On Sunday, 6 March 2016 at 14:21:55 UTC, Rikki Cattermole wrote: Okay, since you clearly have not worked in a native language before, lets start from scratch. [...] Sorry for my idiot question. Thanks.
Had not Dllimport in D?
First, I really sorry my bad english. I just want to using Ruby dll file(msvcrt-ruby220.dll). In the case of C#, using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using INT = System.Int32; namespace RubyTest01 { static class Ruby { public const string RubyDll = "msvcrt-ruby18"; [DllImport(RubyDll)] public static extern void ruby_init(); [DllImport(RubyDll)] public static extern INT rb_eval_string_protect(byte[] script, ref INT state); public static INT rb_eval_string_protect(string script, ref INT state) { return rb_eval_string_protect(Encoding.UTF8.GetBytes(script + '\0'), ref state); } } class Program { static void Main(string[] args) { INT state = 0; Ruby.ruby_init(); Ruby.rb_eval_string_protect("open('test.txt', 'w') {| fp| fp.write(\"Hello World!\\n\")}", ref state); } } I guess D had something like it, but i don't know how to do it. Thx!
How to make a progressbar with DWT?
Hello :-) Well.. In java with SWT case, used asyncExec and Runnable class. how can i do processing?
Re: [D Cookbook]about "Communicating with external processes" part.
On Sunday, 13 September 2015 at 13:44:06 UTC, anonymous wrote: On Sunday 13 September 2015 15:32, xky wrote: [ pipe.d ]: == import std.process; import std.stdio; void main(){ auto info = pipeProcess("child.exe"); scope(exit) wait(info.pid); info.stdin.writeln("data to send to the process"); info.stdin.close(); foreach(line; stdout.byLine){ I think it should be `info.stdout.byLine` here. writeln("Received ", line, " from child."); } } == Yes, thanks for the tip detail!
Re: [D Cookbook]about "Communicating with external processes" part.
On Sunday, 13 September 2015 at 13:34:18 UTC, Adam D. Ruppe wrote: I'm in a super rush, running late to something else, but try using readln in the child before writing and see what happens. You sent data to it but the child never read it. oh my... you're right. lol so, i fix "pipe.d" this: [ pipe.d ] import std.process; import std.stdio; void main(){ auto info = pipeProcess("child.exe"); scope(exit) wait(info.pid); //info.stdin.writeln("data to send to the process"); foreach(line; info.stdout.byLine){ writeln("Result:", line); } } [ CMD ] C:\Users\user\Desktop\pipe>pipe Result:hello work fine. thx so much. :)
[D Cookbook]about "Communicating with external processes" part.
Hello. :) I just got a this problem when i read "D Cookbook". [ pipe.d ]: == import std.process; import std.stdio; void main(){ auto info = pipeProcess("child.exe"); scope(exit) wait(info.pid); info.stdin.writeln("data to send to the process"); info.stdin.close(); foreach(line; stdout.byLine){ writeln("Received ", line, " from child."); } } == [ child.d ]: == import std.stdio; void main(){ writeln("hello"); } == [ CMD ]: == C:\Users\user\Desktop\pipe>pipe.exe std.stdio.StdioException@std\stdio.d(3867 0x00407BEF 0x00403149 0x004029F0 0x0040289B 0x0040307F 0x00403032 0x0040300E 0x00402FC1 0x0040272F 0x004026DB 0x004020E2 0x00406412 0x004063E7 0x004062FB 0x00403E7F 0x7493336A in BaseThreadInitThunk 0x76EF9882 in RtlInitializeExceptionChain 0x76EF9855 in RtlInitializeExceptionChain Failed to flush stdout: No error == Well... That's all! It's my mistake? How can i slove this problem? :/ regards,
cURL alternative for enable javascript
hello! :) Well.. yes. cURL couldn't enable javascript. How can i use other library alternative cURL for D ? regards,
Re: how to string → uint* ?
On Sunday, 28 June 2015 at 10:00:37 UTC, anonymous wrote: On Sunday, 28 June 2015 at 01:57:46 UTC, xky wrote: [...] Don't try casting just because you guess it could maybe work. The best documentation for setUnicodeString I could find is this: https://github.com/SFML/CSFML/blob/master/include/SFML/Graphics/Text.h#L243 which is pretty bad. [...] Thank you everybody for answered me! ^_^
how to string → uint* ?
hello. :-) when i was using DerelictSFML2( http://code.dlang.org/packages/derelict-sfml2 ), i got this problem. CSFML doc had 'setUnicodeString': CSFML_GRAPHICS_API void sfText_setUnicodeString ( sfText * text, const sfUint32 * string ) *'sfUint32' same 'unsigned int'. how to convert string → uint? i just try that, but not work. string test = "안녕, こんにちは"; string* test_p = &test; sfUint32* uintObject = cast(sfUint32*)test_p; sfText_setUnicodeString( , uintObject ); thanks, :)