Re: Compilation problems with GDC/GCC

2017-04-16 Thread Johannes Pfau via Digitalmars-d-learn
Am Sat, 15 Apr 2017 14:01:51 + schrieb DRex : > On Saturday, 15 April 2017 at 13:08:29 UTC, DRex wrote: > > On Saturday, 15 April 2017 at 13:02:43 UTC, DRex wrote: > >> On Saturday, 15 April 2017 at 12:45:47 UTC, DRex wrote: > > > > Update to the Update, > > > > I fixed the lib failing to

Re: Compilation problems with GDC/GCC

2017-04-15 Thread DRex via Digitalmars-d-learn
On Saturday, 15 April 2017 at 13:08:29 UTC, DRex wrote: On Saturday, 15 April 2017 at 13:02:43 UTC, DRex wrote: On Saturday, 15 April 2017 at 12:45:47 UTC, DRex wrote: Update to the Update, I fixed the lib failing to open by copying it to the location of my sources, and setting the ld to use

Re: Compilation problems with GDC/GCC

2017-04-15 Thread DRex via Digitalmars-d-learn
On Saturday, 15 April 2017 at 13:02:43 UTC, DRex wrote: On Saturday, 15 April 2017 at 12:45:47 UTC, DRex wrote: Update to the Update, I fixed the lib failing to open by copying it to the location of my sources, and setting the ld to use libraries in that folder, however I am still getting th

Re: Compilation problems with GDC/GCC

2017-04-15 Thread DRex via Digitalmars-d-learn
On Saturday, 15 April 2017 at 12:45:47 UTC, DRex wrote: On Friday, 14 April 2017 at 18:00:22 UTC, Johannes Pfau wrote: Am Fri, 14 Apr 2017 13:03:22 + schrieb DRex : GDC should generally only need to link to -lgdruntime (and -lgphobos if you need it). However, if you really link using ld

Re: Compilation problems with GDC/GCC

2017-04-15 Thread DRex via Digitalmars-d-learn
On Friday, 14 April 2017 at 18:00:22 UTC, Johannes Pfau wrote: Am Fri, 14 Apr 2017 13:03:22 + schrieb DRex : GDC should generally only need to link to -lgdruntime (and -lgphobos if you need it). However, if you really link using ld you'll have to provide the C startup files, -lc and simil

Re: Compilation problems with GDC/GCC

2017-04-14 Thread Johannes Pfau via Digitalmars-d-learn
Am Fri, 14 Apr 2017 13:03:22 + schrieb DRex : > On Friday, 14 April 2017 at 12:01:39 UTC, DRex wrote: > > > > the -r option redirects the linked object files into another > > object file, so the point being I can pass a D object and a C > > object to the linker and produce another object fil

Re: Compilation problems with GDC/GCC

2017-04-14 Thread DRex via Digitalmars-d-learn
On Friday, 14 April 2017 at 12:01:39 UTC, DRex wrote: the -r option redirects the linked object files into another object file, so the point being I can pass a D object and a C object to the linker and produce another object file. As for linking D files, do you mean passing the druntime lib

Re: Compilation problems with GDC/GCC

2017-04-14 Thread DRex via Digitalmars-d-learn
On Friday, 14 April 2017 at 11:51:54 UTC, Nicholas Wilson wrote: On Friday, 14 April 2017 at 11:32:57 UTC, DRex wrote: I have project which involves both C and D code. For reasons that are much too long to explain, I have to use GCC to compile the C code into object files (GDC to compile the D

Re: Compilation problems with GDC/GCC

2017-04-14 Thread Nicholas Wilson via Digitalmars-d-learn
On Friday, 14 April 2017 at 11:32:57 UTC, DRex wrote: I have project which involves both C and D code. For reasons that are much too long to explain, I have to use GCC to compile the C code into object files (GDC to compile the D code into object files) and then ld to link all the object files

Compilation problems with GDC/GCC

2017-04-14 Thread DRex via Digitalmars-d-learn
I have project which involves both C and D code. For reasons that are much too long to explain, I have to use GCC to compile the C code into object files (GDC to compile the D code into object files) and then ld to link all the object files together. Now (unless I am missing something) ld can