X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 2002:ac8:6d3b:: with SMTP id r27mr32456005qtu.55.1588113395937; Tue, 28 Apr 2020 15:36:35 -0700 (PDT) X-Received: by 2002:a25:e008:: with SMTP id x8mr18539558ybg.295.1588113395045; Tue, 28 Apr 2020 15:36:35 -0700 (PDT) Newsgroups: comp.os.msdos.djgpp Date: Tue, 28 Apr 2020 15:36:34 -0700 (PDT) In-Reply-To: <9c383eca-869d-4afa-9562-a505f3ea5428@googlegroups.com> Complaints-To: groups-abuse AT google DOT com Injection-Info: google-groups.googlegroups.com; posting-host=176.137.64.116; posting-account=4BuJbwoAAAAIG68eUeYsXc5NjD2uAegj NNTP-Posting-Host: 176.137.64.116 References: <8af0ebdd-acea-a7be-3388-d295af50bfc7 AT gmail DOT com> <708c79a5-c5f4-4144-8d02-0f2a0497c441 AT googlegroups DOT com> <6431e105-dfc5-440b-8aa5-382bab083466 AT googlegroups DOT com> <2e97cd0b-78cb-4f21-93ca-fa258276e21b AT googlegroups DOT com> <9c383eca-869d-4afa-9562-a505f3ea5428 AT googlegroups DOT com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9071962a-ffa4-40b7-aee1-1e4f54841b6a@googlegroups.com> Subject: Re: Issues using DJGPP with Rust From: "=?UTF-8?Q?S=C3=A9bastien_GUILLAUME?= (pif0017 AT gmail DOT com) [via djgpp AT delorie DOT com]" Injection-Date: Tue, 28 Apr 2020 22:36:35 +0000 Content-Type: text/plain; charset="UTF-8" Bytes: 3090 Lines: 29 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 03SMjKvT002884 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Le mardi 28 avril 2020 22:14:20 UTC+2, nona DOT DOT DOT AT gmail DOT com a écrit : > On Tuesday, April 28, 2020 at 12:35:02 PM UTC-4, Sébastien GUILLAUME wrote: > > OK, > > can you post an archive with object file used to link the exe? > > The build directory with all temporary files, from rustc and djgpp. > > I have read the new post github, the idea of converting files with objectcopy is interesting, I will build binutils to have the support of pecoff and coff-go32, it's easy with Gentoo. > > Unfortunately stopping a Cargo build in the middle is difficult. It deletes the object files when it's done linking, so I think it caches them in some other format for when you want to rebuild. It might be best to just install nightly Rust unfortunately. Before using this kind of high level tool, it's important to know if they are making what we are waiting. To be sure, begin with a simple Makefile is the best practice. I won't install nightly on my system, I don't want to break it and discover strange error message at the next firfox update. I have rebuild my binutils, all the needed format are suported. I will read this doc https://doc.rust-lang.org/rust-by-example/hello.html and this one https://doc.rust-lang.org/nomicon/ffi.html to know what is possible. Your idea is to call C from Rust in DOS and using DJGPP libc, that's right?