Turns out, I was #importing a C++ header file instead of #include. Also, the
same file with the aforementioned error needed to be a *.mm . All is
linking well now. Thanks,
B
On Jan 12, 2008 5:20 PM, Neil Stevens <ne...@ha...> wrote:
> Benjamin Dunton wrote:
> > All,
> > I have a program that is specifically told to link as objective-C++.
> When I
> > do this, RBApplicationMain is undefined at link time (it is linked as a
> > framework, and on the link line.) If I change to "According to Source
> > Type", it would work, but I have some code in a *.h file that is C++
> > specific that does not compile properly (I'm assuming because it is
> reading
> > the .h file according to obj-c rules).
> >
> > Can anyone help?
>
> extern "C"
> {
> #include <RBRuntime.h>
> }
>
> You probably need to change your include like so, to get C linkage for
> that function.
> --
> Neil Stevens - ne...@ha...
>
> If you're seeing shades of gray, it's because you're not
> looking close enough to see the black and white dots.
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Rubycocoa-talk mailing list
> Rub...@li...
> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk
>
>
|