Hi, Am OK compiling your 1st "Hello World" example. But now, your example on this page uses the Foundation classes. Have included a copy of my compile link and run session.
Any ideas?
Eugene@LAPTOP1 /c/code/ObjectiveC/MyClass $ gcc main.m MyClass.m -I C:/GNUstep/Core/GNUstep/System/Library/Headers -I C: /MinGW/lib/gcc/mingw32/3.4.5/include -lobjc -o MyClassTest C:/GNUstep/Core/GNUs tep/System/Library/Libraries/libgnustep-base.dll.a Info: resolving ___objc_class_name_NSObject by linking to __imp____objc_class_name_NSObject (auto-import) C:\GNUstep\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs. Eugene@LAPTOP1 /c/code/ObjectiveC/MyClass $ ./MyClassTest objc runtime: cannot find class NSObject
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.