• 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: Ari Benzane <email@hidden>
  • Date: Wed, 16 Aug 2006 23:14:24 +0100



On 16 Aug 2006, at 12:07, Ari 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

Sorry I don't follow you - I tried that but got a syntax error. It seems to be a problem with the way GCC is linking the project - if I include the entire function inside the header file, I get a multiple- symbol defined error.





___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html
_______________________________________________
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
  • Follow-Ups:
    • Re: Undefined Symbols when linking global logging function
      • From: Jens Ayton <email@hidden>
    • Re: Undefined Symbols when linking global logging function
      • From: Aaron Montgomery <email@hidden>
  • Prev by Date: Re: Working with dSYM files from other architectures
  • Next by Date: Re: Undefined Symbols when linking global logging function
  • Previous by thread: Re: Undefined Symbols when linking global logging function
  • Next by thread: Re: Undefined Symbols when linking global logging function
  • Index(es):
    • Date
    • Thread