Results 1 to 3 of 3
  1. #1

    Bracer's Avatar
    Member Since
    Oct 07, 2009
    duplicate symbol _OBJC_METACLASS_$
    I created a basic command line Foundation Class Based object using the build in template.

    I proceed to add a new "MyClass.m" & "MyClass.h" and everything compiles fine.

    Now when I try to #import "MyClass.m" in the main file it says:
    ld: duplicate symbol _OBJC_METACLASS_$_MyClass in MyClass.o and Link.o...

    Please Help.

  2. #2

    xstep's Avatar
    Member Since
    Jun 25, 2005
    On the road
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    Import the .h file.

    I think what has happened is that your project already knows to compile the .m file. By including it in another source file, you are asking the compiler to compile it inline with that other source file, so the compiler sees it a second time, hence the duplicate symbol.
    CameraTime - Time lapse photography for novice and advanced users.

    When asking questions, post the version of your software. You'll receive better answers.

    Please post your results to the thread as it is good feedback.

  3. #3

    Bracer's Avatar
    Member Since
    Oct 07, 2009
    I see, thanks xstep.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What is the symbol for?
    By tenleftfingers in forum OS X - Operating System
    Replies: 14
    Last Post: 10-04-2012, 01:42 AM
  2. using *-symbol
    By sam256 in forum iOS Development
    Replies: 1
    Last Post: 10-14-2011, 02:56 PM
  3. What's this symbol I see?
    By MrBruno in forum Switcher Hangout
    Replies: 7
    Last Post: 09-14-2011, 01:29 PM
  4. What does this symbol mean?
    By MelissaR in forum iPhone Hardware and Accessories
    Replies: 4
    Last Post: 03-15-2011, 09:52 PM
  5. What does this symbol mean?
    By shwoot56 in forum iOS and Apps
    Replies: 0
    Last Post: 09-01-2009, 10:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts