bug-gnustep
[Top][All Lists]
Advanced

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

[bug #32383] NSClassFromString returns nil on MinGw if the string class


From: Richard Frith-Macdonald
Subject: [bug #32383] NSClassFromString returns nil on MinGw if the string class is in a shared library and hasn't yet been used
Date: Mon, 07 Feb 2011 23:06:44 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4

Update of bug #32383 (project gnustep):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Declined               

    _______________________________________________________

Follow-up Comment #1:

1. The behavior you describe seems to be correct (ie not a bug),
NSClassFromString() is not supposed to return a non-existent class ... you
have to have loaded the class in some way before it can be found.  Calling a
method of the class and linking the library will of course get the linker to
load the class at program startup, which is why NSClassFromString() is able to
return the named class in the version of the program where you have called
[RandomClass class].

2. Your example won't compile on my system because you haven't used
gnustep-make. I suggest looking at
http://www.gnustep.it/nicola/Tutorials/WritingMakefiles/index.html
so that you can write a makefile which will work on any system.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32383>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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