|
From: | Frederik Seiffert |
Subject: | Re: Building GNUstep for Windows using Clang |
Date: | Wed, 20 Jan 2021 16:54:58 +0100 |
So it seems that we need to generate a module definition (.def) file in order to have all the ObjC class symbols exported in the DLL. This is also what WinObjC is doing, I’ll try to come up with a script to generate this file from the object file symbols. However after manually creating a .def file with a few relevant symbols I still get the following linker error, which happens for any referenced Foundation class (NSArray is just an example):
I confirmed with dumpbin /exports that the .lib and DLL both contain these $_OBJC_REF_CLASS_ symbols, so I really don’t understand why it’s not found. I’ve reproduced the issue from scratch using only libobjc2 and have written down the steps to reproduce here: Hopefully I’m just missing some flag somewhere when creating the DLL. I’d appreciate any thoughts. Thanks! Frederik
|
[Prev in Thread] | Current Thread | [Next in Thread] |