Re: Adding libraries to an executable

2013-09-13 Thread Jonathan M Davis
On Friday, September 13, 2013 21:54:39 Anton Alexeev wrote: > So, nobody can give an easy answer how to statically link the > libraries with the executable and I have yo use Bin2D? If you give the exact file name for the static library (e.g. /path/to/libcurl.a), then it should link against the st

Re: Adding libraries to an executable

2013-09-13 Thread FreeSlave
On Friday, 13 September 2013 at 19:54:41 UTC, Anton Alexeev wrote: So, nobody can give an easy answer how to statically link the libraries with the executable and I have yo use Bin2D? Did you try to use -static option of compiler? It forces to link application with static libraries instead of

Re: Adding libraries to an executable

2013-09-13 Thread Anton Alexeev
So, nobody can give an easy answer how to statically link the libraries with the executable and I have yo use Bin2D?

Re: Adding libraries to an executable

2013-09-12 Thread Jacob Carlborg
On 2013-09-12 18:25, Anton Alexeev wrote: [Environment] DFLAGS=-I/usr/include/dmd/phobos -I/usr/include/dmd/druntime/import -L-L/usr/lib/i386-linux-gnu -L-L/usr/lib/x86_64-linux-gnu -L--no-warn-search-mismatch -L--export-dynamic I don't see way explicitly linking with Phobos would make a diff

Re: Adding libraries to an executable

2013-09-12 Thread Anton Alexeev
On Thursday, 12 September 2013 at 11:30:05 UTC, Jacob Carlborg wrote: On 2013-09-12 12:14, Anton Alexeev wrote: I've installed libcurl4-openssl-dev 7.29.0-1ubuntu3.1 before I asked for help here. Else I can't even compile with that command: dmd -L-lphobos2 -L-lcurl test.d How does your dmd.

Re: Adding libraries to an executable

2013-09-12 Thread Jacob Carlborg
On 2013-09-12 12:14, Anton Alexeev wrote: I've installed libcurl4-openssl-dev 7.29.0-1ubuntu3.1 before I asked for help here. Else I can't even compile with that command: dmd -L-lphobos2 -L-lcurl test.d How does your dmd.conf file look like? -- /Jacob Carlborg

Re: Adding libraries to an executable

2013-09-12 Thread Anton Alexeev
On Thursday, 12 September 2013 at 01:16:28 UTC, Mike Parker wrote: On 9/12/2013 6:20 AM, Anton Alexeev wrote: On Tuesday, 10 September 2013 at 11:06:04 UTC, Jacob Carlborg wrote: On 2013-09-10 11:04, Anton Alexeev wrote: Can be but not libphobos2 Link statically with it, which is does by de

Re: Adding libraries to an executable

2013-09-11 Thread Mike Parker
On 9/12/2013 6:20 AM, Anton Alexeev wrote: On Tuesday, 10 September 2013 at 11:06:04 UTC, Jacob Carlborg wrote: On 2013-09-10 11:04, Anton Alexeev wrote: Can be but not libphobos2 Link statically with it, which is does by default. Just compile with: dmd -L-lcurl test.d The point is: http:

Re: Adding libraries to an executable

2013-09-11 Thread Anton Alexeev
On Tuesday, 10 September 2013 at 11:06:04 UTC, Jacob Carlborg wrote: On 2013-09-10 11:04, Anton Alexeev wrote: Can be but not libphobos2 Link statically with it, which is does by default. Just compile with: dmd -L-lcurl test.d The point is: http://pastebin.com/0VkYgFix

Re: Adding libraries to an executable

2013-09-10 Thread Jacob Carlborg
On 2013-09-10 11:04, Anton Alexeev wrote: Can be but not libphobos2 Link statically with it, which is does by default. Just compile with: dmd -L-lcurl test.d -- /Jacob Carlborg

Re: Adding libraries to an executable

2013-09-10 Thread Anton Alexeev
On Tuesday, 10 September 2013 at 07:02:17 UTC, Jacob Carlborg wrote: On 2013-09-06 23:31, Anton Alexeev wrote: I've written a program which uses curl library. So on a PC without curl the program will not work until you install the library. Is there a way to put the curl library in the executab

Re: Adding libraries to an executable

2013-09-10 Thread Jacob Carlborg
On 2013-09-06 23:31, Anton Alexeev wrote: I've written a program which uses curl library. So on a PC without curl the program will not work until you install the library. Is there a way to put the curl library in the executable? On Linux, doesn't all distributions ship with libcurl by default?

Re: Adding libraries to an executable

2013-09-09 Thread Anton Alexeev
On Friday, 6 September 2013 at 22:31:52 UTC, Jonathan M Davis wrote: On Friday, September 06, 2013 23:31:57 Anton Alexeev wrote: I've written a program which uses curl library. So on a PC without curl the program will not work until you install the library. Is there a way to put the curl library

Re: Adding libraries to an executable

2013-09-07 Thread Rikki Cattermole
On Saturday, 7 September 2013 at 13:39:49 UTC, Anton Alexeev wrote: On Saturday, 7 September 2013 at 10:13:39 UTC, Rikki Cattermole wrote: On Saturday, 7 September 2013 at 09:05:39 UTC, Rikki Cattermole wrote: On Friday, 6 September 2013 at 21:31:59 UTC, Anton Alexeev wrote: I've written a prog

Re: Adding libraries to an executable

2013-09-07 Thread Anton Alexeev
On Saturday, 7 September 2013 at 10:13:39 UTC, Rikki Cattermole wrote: On Saturday, 7 September 2013 at 09:05:39 UTC, Rikki Cattermole wrote: On Friday, 6 September 2013 at 21:31:59 UTC, Anton Alexeev wrote: I've written a program which uses curl library. So on a PC without curl the program wil

Re: Adding libraries to an executable

2013-09-07 Thread Anton Alexeev
On Friday, 6 September 2013 at 22:31:52 UTC, Jonathan M Davis wrote: On Friday, September 06, 2013 23:31:57 Anton Alexeev wrote: I've written a program which uses curl library. So on a PC without curl the program will not work until you install the library. Is there a way to put the curl library

Re: Adding libraries to an executable

2013-09-07 Thread Rikki Cattermole
On Saturday, 7 September 2013 at 09:05:39 UTC, Rikki Cattermole wrote: On Friday, 6 September 2013 at 21:31:59 UTC, Anton Alexeev wrote: I've written a program which uses curl library. So on a PC without curl the program will not work until you install the library. Is there a way to put the cur

Re: Adding libraries to an executable

2013-09-07 Thread Rikki Cattermole
On Friday, 6 September 2013 at 21:31:59 UTC, Anton Alexeev wrote: I've written a program which uses curl library. So on a PC without curl the program will not work until you install the library. Is there a way to put the curl library in the executable? You just gave me an idea to compile in s

Re: Adding libraries to an executable

2013-09-06 Thread Jonathan M Davis
On Friday, September 06, 2013 23:31:57 Anton Alexeev wrote: > I've written a program which uses curl library. So on a PC > without curl the program will not work until you install the > library. Is there a way to put the curl library in the executable? Statically link it. - Jonathan M Davis