Re: Linking to -framework on MacOS

2019-09-06 Thread Andrew Edwards via Digitalmars-d-learn
On Thursday, 5 September 2019 at 18:26:41 UTC, DanielG wrote: And depending on the version of macOS / which framework you're linking to, you might need to specify a search path as well (-F): lflags "-framework" "SomeFramework" "-framework" "AnotherFramework" "-F/Library/Frameworks" IIRC I d

Re: Linking to -framework on MacOS

2019-09-06 Thread Andrew Edwards via Digitalmars-d-learn
On Thursday, 5 September 2019 at 12:30:33 UTC, Jacob Carlborg wrote: On 2019-09-04 17:12, Andrew Edwards wrote: Worked like a charm:  -L/System/Library/Frameworks/Cocoa.framework/Cocoa This probably not a good idea. It relies on how a framework is structured internally. Adam's solution is

Re: Linking to -framework on MacOS

2019-09-05 Thread DanielG via Digitalmars-d-learn
And depending on the version of macOS / which framework you're linking to, you might need to specify a search path as well (-F): lflags "-framework" "SomeFramework" "-framework" "AnotherFramework" "-F/Library/Frameworks" IIRC I didn't need that -F parameter on 10.9, but now I do with 10.14.

Re: Linking to -framework on MacOS

2019-09-05 Thread Jacob Carlborg via Digitalmars-d-learn
On 2019-09-04 17:12, Andrew Edwards wrote: Worked like a charm:  -L/System/Library/Frameworks/Cocoa.framework/Cocoa This probably not a good idea. It relies on how a framework is structured internally. Adam's solution is the correct one. -- /Jacob Carlborg

Re: Linking to -framework on MacOS

2019-09-04 Thread Andrew Edwards via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 15:22:51 UTC, Adam D. Ruppe wrote: On Wednesday, 4 September 2019 at 15:00:52 UTC, Andrew Edwards wrote: Could someone point me in the right direction please? You can also add `-L-framework -LCocoa` to dmd to pass the two arguments to the linker (they need to

Re: Linking to -framework on MacOS

2019-09-04 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 15:00:52 UTC, Andrew Edwards wrote: Could someone point me in the right direction please? You can also add `-L-framework -LCocoa` to dmd to pass the two arguments to the linker (they need to be separate -L things for the two pieces, which is kinda weird but i

Re: Linking to -framework on MacOS

2019-09-04 Thread Andrew Edwards via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 15:05:46 UTC, rikki cattermole wrote: Four years ago, I was linking against Cocoa via: "lflags-osx": ["/System/Library/Frameworks/Cocoa.framework/Cocoa"], I don't know if this will help you or not. Worked like a charm: -L/System/Library/Frameworks/Cocoa.f

Re: Linking to -framework on MacOS

2019-09-04 Thread rikki cattermole via Digitalmars-d-learn
Four years ago, I was linking against Cocoa via: "lflags-osx": ["/System/Library/Frameworks/Cocoa.framework/Cocoa"], I don't know if this will help you or not.

Linking to -framework on MacOS

2019-09-04 Thread Andrew Edwards via Digitalmars-d-learn
Hello, I'm trying to link to "-framework OpenGL" on MacOS and finding any clues on how to accomplish this. If I pass that switch to clang and use clang to create the executable, it works perfectly but I would like to use dmd to create the executable. Here is the list of errors I'm trying to