Hi to all:
I have been reading you for a while now and hope you can now help me ;-)
For some time now I have been developing plugins in CodeWarrior and
want to go now the way to start doing so in XCode. I have created a
basic Mach-O plugin that compiles perfectly and works fine. The
problem comes when I try to extend the plugin with more functionality.
I am trying to implement some Cocoa functions. As Apple development
says this is possible from Carbon if you write a C callable wrapper
function. To do so I have created a "misc.m" file and included the
function there. The file seems to compile well. I have also created a
"misc.h" file and included the C function definition there. The main
plugin code file includes "#include misc.h". The problem is that when
I try to call the function I get an linker error saying there is an
"unresolved symbol error" giving a cryptic name resembling the one of
my wrapper function.
You have probably noticed that I am not very experienced to C
programming and there is probably just an error in how I organize and
reference the files due to lack in knowledge of that type of
programming. I have tried all kinds of solutions but nothing works.
One approach was to include the wrapper function in the main plugin
file but that seems not too bee possible as it gives me a lot of
errors. Seems a problem of mixing C and Obj-C.
Well I hope I have explained myself and somebody can give me a clue
of what I am doing wrong.
Thanks in advance.
Alex Fischer
Madrid
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|