• 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: Undefined Symbols when linking global logging function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undefined Symbols when linking global logging function


  • Subject: Re: Undefined Symbols when linking global logging function
  • From: David Dunham <email@hidden>
  • Date: Wed, 16 Aug 2006 12:32:13 -0700


On 16 Aug 2006, at 12:07, Air Benzane wrote:

I'm developing a large application consisting of both C,C++ and Objective-C++ sources. To help with debugging, all logging to the console is handled by a very simple utility file:

This works fine in the development build, but when I try a release- build with XCode 2.2 (GCC 4.0), I get this error:

Undefined symbols:
WriteToLog(char const *)
_writeToLog
collect2: Id returned 1 exit status

Is this a C function used in C++ code? You might want to wrap the definition with


extern "C" {
}

------------
David Dunham email@hidden http://www.pensee.com/dunham/
"No matter how far you have gone on a wrong road, turn back." - Turkish proverb


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Undefined Symbols when linking global logging function (From: Air Benzane <email@hidden>)

  • Prev by Date: Weird inline/struct offset problem
  • Next by Date: Re: Weird inline/struct offset problem
  • Previous by thread: Undefined Symbols when linking global logging function
  • Next by thread: Re: Undefined Symbols when linking global logging function
  • Index(es):
    • Date
    • Thread