Fwd: linking tool to use a framework : obj_send_msg error

2009-04-14 Thread Thomas Kupper
/ Thomas Begin forwarded message: From: Thomas Kupper thomas.kup...@gmail.com Date: 13 April 2009 21:49:06 GMT+02:00 To: discuss-gnustep@gnu.org Subject: Re: linking tool to use a framework : obj_send_msg error There is probably some 'optimisation' in the framework calling the Apple runtime

Re: linking tool to use a framework : obj_send_msg error

2009-04-14 Thread David Chisnall
On 13 Apr 2009, at 21:06, Thomas Kupper wrote: On the other hand, if there are only three calls to objc_msgSend in only one file I could maybe just replace these three calls. But the objc_msg_lookup calls seems to be quite unusal. With quite unsual I mean how can I pass the va_list since the

Re: linking tool to use a framework : obj_send_msg error

2009-04-13 Thread Yavor Doganov
В Sun, 12 Apr 2009 23:23:13 +0200, Thomas Kupper написа: Can someone give me a hint how I can track down that error? Use ADDITIONAL_TOOL_LIBS, e.g. ADDITIONAL_TOOL_LIBS = -llog4cocoa ___ Discuss-gnustep mailing list Discuss-gnustep@gnu.org

Re: linking tool to use a framework : obj_send_msg error

2009-04-13 Thread David Chisnall
On 12 Apr 2009, at 22:23, Thomas Kupper wrote: Next I created a very minimalistic tool application which uses the log4cocoa framework (of course I first installed it into the USER domain). Now the linker throws an error message Linking tool ocHello ...

Re: linking tool to use a framework : obj_send_msg error

2009-04-13 Thread Thomas Kupper
There is probably some 'optimisation' in the framework calling the Apple runtime message send function directly (the quotes because anything doing I/O like this is likely to gain an imperceptible performance increase from calling the runtime functions directly rather than using

Re: linking tool to use a framework : obj_send_msg error

2009-04-13 Thread David Chisnall
On 13 Apr 2009, at 20:49, Thomas Kupper wrote: There is probably some 'optimisation' in the framework calling the Apple runtime message send function directly (the quotes because anything doing I/O like this is likely to gain an imperceptible performance increase from calling the runtime

Re: linking tool to use a framework : obj_send_msg error

2009-04-13 Thread Thomas Kupper
Hey David, I already set -std=c99 in GNUmake.preamble. Tried both ADDITIONAL_CFLAGS and .._OBJCFLAGS but in both cases the __VA_LIST_ macro isn't defined. Mmmh, I use gcc 4.3. Do you have any other idea? Thomas On 13 Apr 2009, at 22:11, David Chisnall wrote: On 13 Apr 2009, at 20:49,

Re: linking tool to use a framework : obj_send_msg error

2009-04-13 Thread David Chisnall
On 13 Apr 2009, at 21:43, Thomas Kupper wrote: Hey David, I already set -std=c99 in GNUmake.preamble. Tried both ADDITIONAL_CFLAGS and .._OBJCFLAGS but in both cases the __VA_LIST_ macro isn't defined. Mmmh, I use gcc 4.3. Do you have any other idea? Yes - you ignore what I say, for I

Re: linking tool to use a framework : obj_send_msg error

2009-04-13 Thread Thomas Kupper
You're my hero! I ignored what you said first and did what you said second and it compiles/links like a charm!! Thanks alot Thomas On 13 Apr 2009, at 23:07, David Chisnall wrote: On 13 Apr 2009, at 21:43, Thomas Kupper wrote: Hey David, I already set -std=c99 in GNUmake.preamble. Tried

linking tool to use a framework : obj_send_msg error

2009-04-12 Thread Thomas Kupper
Hello, I just started programming in Objective-C (I do have knowledge of C, Java and C++) under Mac OS X and was a bit suprised by the wide use of NSLog. But I found log4cocoa which implements the log4j concept in Obj- C. log4cocoa comes with project files for XCode only and since I don't