digitalmars.D - how to lin standard C++ libraries
- Milvakili (6/6) Jun 26 2013 Hi,
- Adam D. Ruppe (4/6) Jun 26 2013 Pass -L-lstdc++ to dmd.
- Milvakili (3/9) Jun 26 2013 I have tried this it did not work. And tells:
- Adam D. Ruppe (6/8) Jun 26 2013 Did you do:
- Milvakili (3/12) Jun 26 2013 I do both of them in separate tries. -L-lstdc++ thing gives the
- Adam D. Ruppe (3/5) Jun 26 2013 Strange, I don't know what is wrong here. I've done this before
- Milvakili (2/7) Jun 26 2013 Yep
- Adam D. Ruppe (5/5) Jun 26 2013 Last thing I can think of is double check and make sure there's
- Mike Parker (2/7) Jun 26 2013 Trying to link statically with libstdc++? -L-static-libstdc++
Hi, I m trying to link c++ and d code, but I keep getting error when I used stanrd library elements such as vectors or iostream. dmd do not except -lstdc++ option so what is the correct way doing this? thanks
Jun 26 2013
On Thursday, 27 June 2013 at 00:19:11 UTC, Milvakili wrote:dmd do not except -lstdc++ option so what is the correct way doing this?Pass -L-lstdc++ to dmd. -L means pass the rest of the option to the linker, and -l of course is known to ld.
Jun 26 2013
On Thursday, 27 June 2013 at 00:20:29 UTC, Adam D. Ruppe wrote:On Thursday, 27 June 2013 at 00:19:11 UTC, Milvakili wrote:I have tried this it did not work. And tells: Error: unrecognized switch '-lstdc++'dmd do not except -lstdc++ option so what is the correct way doing this?Pass -L-lstdc++ to dmd. -L means pass the rest of the option to the linker, and -l of course is known to ld.
Jun 26 2013
On Thursday, 27 June 2013 at 00:24:49 UTC, Milvakili wrote:I have tried this it did not work. And tells: Error: unrecognized switch '-lstdc++'Did you do: -lstdc++ or -L-lstdc++ ?
Jun 26 2013
On Thursday, 27 June 2013 at 00:27:22 UTC, Adam D. Ruppe wrote:On Thursday, 27 June 2013 at 00:24:49 UTC, Milvakili wrote:I do both of them in separate tries. -L-lstdc++ thing gives the error in the previous message.I have tried this it did not work. And tells: Error: unrecognized switch '-lstdc++'Did you do: -lstdc++ or -L-lstdc++ ?
Jun 26 2013
On Thursday, 27 June 2013 at 00:29:57 UTC, Milvakili wrote:I do both of them in separate tries. -L-lstdc++ thing gives the error in the previous message.Strange, I don't know what is wrong here. I've done this before with -L-l. You're on Linux using gcc for the C++, right?
Jun 26 2013
On Thursday, 27 June 2013 at 00:36:32 UTC, Adam D. Ruppe wrote:On Thursday, 27 June 2013 at 00:29:57 UTC, Milvakili wrote:YepI do both of them in separate tries. -L-lstdc++ thing gives the error in the previous message.Strange, I don't know what is wrong here. I've done this before with -L-l. You're on Linux using gcc for the C++, right?
Jun 26 2013
Last thing I can think of is double check and make sure there's no -lxxx on your command line at all. Maybe there was a left over one. But if it isn't that, I don't know... hopefully someone else will be of more help.
Jun 26 2013
On Thursday, 27 June 2013 at 00:48:19 UTC, Adam D. Ruppe wrote:Last thing I can think of is double check and make sure there's no -lxxx on your command line at all. Maybe there was a left over one. But if it isn't that, I don't know... hopefully someone else will be of more help.Trying to link statically with libstdc++? -L-static-libstdc++
Jun 26 2013