iZZiSwift

iZZiSwift

Learning by Sharing Swift Programing and more …

  • Swift Programming
    • Swift Language
    • i0S Swift Issue
  • Devices
  • MacOS
  • Python Programming
  • Kotlin Programming
  • Memo

Tag: linker

Forcing Clang to link with C++ runtime

December 30, 2020 Odhran Miss

Question or issue on macOS: I have a project containing a mixture of C and C++ source. It currently builds with GCC on OS X. The project has bespoke build scripts which invoke the gcc command to compile both the C and C++ source, and separately invoke the linker.

Continue Reading

Using a Linker Script on Mac OS X

December 25, 2020 Ollie MC

Question or issue on macOS: Is there any way to use a linker script with ld on Mac OS X?

Continue Reading

Re-export Shared Library Symbols from Other Library (OS X / POSIX)

December 25, 2020 Simon Abital

Question or issue on macOS: My question is fairly OS X on x86-64 specific but a universal solution that works on other POSIX OSes is even more appreciated.

Continue Reading

What are the default search directories to link a library on Mac OS X

December 24, 2020 Andrew Rocky

Question or issue on macOS: I’ve build the Google Test with CMake on Mac OS X and get two shared libraries: libgtest.dylib and libgtest_main.dylib. And now I need install both them. I know there are some default search directories on Linux, such as /usr/lib, /usr/local/lib, etc.. But I am unfamiliar with Mac OS X and […]

Continue Reading

Call a C++ function from Swift

December 24, 2020 Odhran Miss

Question or problem in the Swift programming language: How should I call a C++ function (no classes involved) from a Swift file? I tried this:

Continue Reading

How to link compiled object file (hello.o) with ld on Mac OS X?

December 24, 2020 Odhran Miss

Question or issue on macOS: I got a problem with link objective files on a Mac OS X. Tracing back the problem is, here is my C hello world program

Continue Reading

Mach-O’s two-level namespace symbol resolution in ELF/linux

December 22, 2020 Abreonia Ng

Question or issue on macOS: Anyone know of an equivalent to Mach-O’s two-level namespace symbol resolution in ELF/linux? I want code that links to lib+sym, not sym.

Continue Reading

What is the “___emutls_get_address” symbol?

December 21, 2020 Bell Jacquise

Question or issue on macOS: Oh, I am a newbie in GCC and MAC and Makefile. Today I intended to build a dynamic lib using MAC OS X and GCC 4.4.2, but when linking the .o files, the compiler complains like this:

Continue Reading

OS X linker unable to find symbols from a C file which only contains variables

December 21, 2020 Ollie MC

Question or issue on macOS: I am having problems with the linker when porting a C library from Linux (Ubuntu) to OS X. The C code is auto-generated from Matlab, so ideally I don’t want to change the code itself.

Continue Reading

gcc on Mac OS X: how to link libraries installed with MacPorts?

December 19, 2020 Bell Jacquise

Question or issue on macOS: I have installed gcc 4.6 using macports. The prefix is /opt/local, and I get the expected include path:

Continue Reading

Posts navigation

Older posts

Same Catagory Posts

    iZZiSwift | Developed by iZZi Team from 2017