discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gstep-base changes for MinGW/Windows


From: Helge Hess
Subject: Re: gstep-base changes for MinGW/Windows
Date: Mon, 25 Sep 2000 10:31:26 +0200

Hi Adam,

I'll send you my latest make pkg in a separate mail.

Adam Fedor wrote:
> With the recent changes I've made to the base library, I've been able to
> compile the base library (static library only) on MinGW for Windows, and
> perhaps about 80% of the classes/test programs work.

Nice. Did you use Cygwin as the build environment, or Linux, or
MinGW-make ?

> I can't seem to get the gstep-base DLL to work, though. It links fine,
> but then gives a 'Can't find __objc_class_NSObject' error when running a
> program.

Make sure that the DLL is in $PATH, a DLL is like an .exe and has no
separate LD_LIBRARY_PATH like in Linux.

Also make sure that your .def file contains all ObjC-classes, so that
they are properly exported. The dllwrap-autogenerated .def files do not
contain ObjC classes, but only functions. You can check
'derived_src/mylib.def' for what is exported.
Maybe I should write a gen-def script which scans all libname_OBJC_FILES
for '@implementation' sections and outputs them into a .def file.
Notably with bundles you do not need .def files since all class-access
is done using the ObjC runtime.

You can also use the 'Quickview' context menu in the Filebrowser to see
what a DLL imports and exports.

Greetings,
  Helge



reply via email to

[Prev in Thread] Current Thread [Next in Thread]