Re: Linking order on Linux matters?

2013-11-25 Thread Mike Parker
On Monday, 25 November 2013 at 23:25:05 UTC, Jeremy DeHaan wrote: Order matters, no matter the language. See http://stackoverflow.com/a/409470/1924406 Thanks! That's a great link. It cleared up quite a lot. Note that this also applies to Windows with MinGW (and, I assume, Cygwin). It's a

Re: Linking order on Linux matters?

2013-11-25 Thread Jeremy DeHaan
On Monday, 25 November 2013 at 20:29:19 UTC, Antoche wrote: On Monday, 25 November 2013 at 18:19:57 UTC, Jeremy DeHaan wrote: Hey all, New to Linux, so I wanted to double check something. I have a C shared library and a D static library. The D static library uses functions from the C library.

Re: Linking order on Linux matters?

2013-11-25 Thread Antoche
On Monday, 25 November 2013 at 18:19:57 UTC, Jeremy DeHaan wrote: Hey all, New to Linux, so I wanted to double check something. I have a C shared library and a D static library. The D static library uses functions from the C library. On Windows, it didn't matter what order I linked the .libs

Re: Linking order on Linux matters?

2013-11-25 Thread Dmitry Olshansky
25-Nov-2013 22:19, Jeremy DeHaan пишет: Hey all, New to Linux, so I wanted to double check something. I have a C shared library and a D static library. The D static library uses functions from the C library. On Windows, it didn't matter what order I linked the .libs in and it always compiled fin

Linking order on Linux matters?

2013-11-25 Thread Jeremy DeHaan
Hey all, New to Linux, so I wanted to double check something. I have a C shared library and a D static library. The D static library uses functions from the C library. On Windows, it didn't matter what order I linked the .libs in and it always compiled fine. On Linux, however, I have to link