• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple Definitions of Symbol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Definitions of Symbol


  • Subject: Re: Multiple Definitions of Symbol
  • From: Nate Smith <email@hidden>
  • Date: Sun, 23 Jan 2005 13:16:35 -0500

Well for instance, I am writing a project in objective c and had to
write a single function in standard c for sorting subviews of a view.
I did the standard #ifndef #define calls, but when I compiled and ran,
like you, I got a million redefinition errors. The way I fixed it was
to create an "objective c class" file in x-code. I then took out all
the code that was created via the wizard, and then pasted in my c
code. Worked perfectly.. although I think that this is a hack, and
will hopefully be fixed in future releases.. ??

Nate


On Sun, 23 Jan 2005 12:56:35 -0500, Guy English <email@hidden> wrote:
> On Sat, 22 Jan 2005 16:26:19 -0500, Nate Smith <email@hidden> wrote:
> > Is this project that you are importing a C project?
>
> Yes. A mix of C and C++. Is there something I should know about that?
> I'm at a loss since the code in question links fine on everything from
> the PSP to Windows ... and I'm sure at one point I had it building on
> OS X but I can't dig up the project now.
>
> The C code is the "system" level stuff that talks to the platform APIs
> and calls C functions defined in the C++ files (with extern "C"
> exported) that drive the model objects. It's a 3D engine thats a
> pretty big chunk of code and, depending on the platform, talks to
> OpenGL, OpenAL, etc. I haven't seen this link problem before and after
> a bit of googling found a fair amount of complaining about it on OS X
> - but no solutions.
>
> Still strugglin' along,
> Guy
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Multiple Definitions of Symbol (From: Guy English <email@hidden>)
 >Re: Multiple Definitions of Symbol (From: Evan Schoenberg <email@hidden>)
 >Re: Multiple Definitions of Symbol (From: Nate Smith <email@hidden>)
 >Re: Multiple Definitions of Symbol (From: Guy English <email@hidden>)

  • Prev by Date: Application without menu: How to get Cmd-C event?
  • Next by Date: Multiple Windows for an App question
  • Previous by thread: Re: Multiple Definitions of Symbol
  • Next by thread: Re: Multiple Definitions of Symbol
  • Index(es):
    • Date
    • Thread