Re: How to resolve libstdc++.6.dylib dependency

2018-03-26 Thread Ken Cunningham
that's probably the simplest solution for simple executables with no complicated web of supporting libraries. I wonder if the same thing could work for Mojca's libc++ issues with her binaries? Ken On 2018-03-24, at 11:20 AM, Andreas Falkenhahn wrote: > On 24.03.2018 at 17:34 Mojca Miklavec

Re: How to resolve libstdc++.6.dylib dependency

2018-03-24 Thread Ryan Schmidt
On Mar 24, 2018, at 07:35, Andreas Falkenhahn wrote: > When I compile my C++11 project on a 10.5 PPC system using gcc6 and try to > run it on another 10.5 PPC system that doesn't have gcc6 installed, I get an > error that a symbol cannot be imported from /usr/lib/libstdc++.6.dylib. I > guess t

Re: How to resolve libstdc++.6.dylib dependency

2018-03-24 Thread Andreas Falkenhahn
On 24.03.2018 at 17:34 Mojca Miklavec wrote: > Sorry about the wrong advice about stdlib. No worries, I've had another idea. I can just link statically against libgcc and libstdc++, like so: -static-libgcc -static-libstdc++ This increases the executable size by about 1 MB but the resulting exe

Re: How to resolve libstdc++.6.dylib dependency

2018-03-24 Thread Mojca Miklavec
On 24 March 2018 at 16:40, Andreas Falkenhahn wrote: > On 24.03.2018 at 16:07 Ken Cunningham wrote: > >> Cameron Kaiser builds and distributes TenFourFox which is a c++11 >> app built with gcc48 against a new libstdc++. >> He has worked a lot of this out. >> His instructions are here >>

Re: How to resolve libstdc++.6.dylib dependency

2018-03-24 Thread Andreas Falkenhahn
On 24.03.2018 at 16:07 Ken Cunningham wrote: > Cameron Kaiser builds and distributes TenFourFox which is a c++11 > app built with gcc48 against a new libstdc++. > He has worked a lot of this out. > His instructions are here >

Re: How to resolve libstdc++.6.dylib dependency

2018-03-24 Thread Andreas Falkenhahn
On 24.03.2018 at 14:07 Mojca Miklavec wrote: > On 24 March 2018 at 13:35, Andreas Falkenhahn wrote: >> When I compile my C++11 project on a 10.5 PPC system using gcc6 and try to >> run it on another 10.5 PPC system that doesn't have gcc6 installed, I get an >> error that a symbol cannot be impor

Re: How to resolve libstdc++.6.dylib dependency

2018-03-24 Thread Ken Cunningham
Cameron Kaiser builds and distributes TenFourFox which is a c++11 app built with gcc48 against a new libstdc++. He has worked a lot of this out. His instructions are here , and there's a script in the repo

Re: How to resolve libstdc++.6.dylib dependency

2018-03-24 Thread Mojca Miklavec
On 24 March 2018 at 13:35, Andreas Falkenhahn wrote: > When I compile my C++11 project on a 10.5 PPC system using gcc6 and try to > run it on another 10.5 PPC system that doesn't have gcc6 installed, I get an > error that a symbol cannot be imported from /usr/lib/libstdc++.6.dylib. I > guess thi

Re: How to resolve libstdc++.6.dylib dependency

2018-03-24 Thread pagani laurent via macports-users
I don’t know much about these libraries but there exists a libstdc++.a library. No idea if it is different in content from the .6 one but if not, you could do a static link so that you don’t need any library for the users to run your program. Not sure it helps. The other solution is to try to fi

How to resolve libstdc++.6.dylib dependency

2018-03-24 Thread Andreas Falkenhahn
When I compile my C++11 project on a 10.5 PPC system using gcc6 and try to run it on another 10.5 PPC system that doesn't have gcc6 installed, I get an error that a symbol cannot be imported from /usr/lib/libstdc++.6.dylib. I guess this is because the libstdc++.6.dylib that is shipped with 10.5