discuss-gnustep
[Top][All Lists]
Advanced

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

ObjectiveC binding problem... (on Windows)


From: Lloyd Dupont
Subject: ObjectiveC binding problem... (on Windows)
Date: Mon, 27 Jun 2005 12:32:23 +1000

Hi All!!
 
I have a problem with an ObjectiveC binding I'm writting.
Particularly with the 'message sending' function.
 
I am building 2 objects here:
objcsharp.m (includes forward.body.c) -> gnustep-objcsharp.dll
test.c -> nmtest2.exe
 
you could use the GNUmakefile to build gnustep-objcsharp.dll
you could build the exe with: gcc -o nmtest2.exe test.c ; strip nmtest2.exe
I copy both binaries as well for your convenience ;)
 
In objcsharp.m are all the C function my binding uses.
line 39 to 49 are the 3 message send methods I use (one for id, one for double/float, one for struct)
I have tested this forwarding code with ordinary C function and it works well.
 
However it doesn't work with ObjectiveC object ?!
ObjectiveC's object IMP for method returning float, struct, etc.. doesn't seems to return the expected types.
as shown by the test program which is write and fail like my binding......
 
why is that?
could someone provides me some guidance?
 
Thanks all!
 
 

Attachment: problem.zip
Description: Binary data


reply via email to

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