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

Undefined Symbols when linking global logging function


  • Subject: Undefined Symbols when linking global logging function
  • From: Air Benzane <email@hidden>
  • Date: Wed, 16 Aug 2006 20:07:15 +0100

Hi, 
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:

Logging.h:

extern void WriteToLog(const char *pString);

Logging.c:

#include "Logging.h"

void WriteToLog(const char *pString) {
puts(pString);
}

 
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


I've done some googling and have checked that the source is included in the target and 'build phase'. I've tried a Clean All. Logging.h is #imported into about a dozen separate source files. Any suggestions? This is driving me nuts, and works fine in other compliers.

 _______________________________________________
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: David Dunham <email@hidden>
  • Prev by Date: Re: Subversion and Icon files in Xcode projects
  • Next by Date: Weird inline/struct offset problem
  • Previous by thread: Xcode Join Projects
  • Next by thread: Re: Undefined Symbols when linking global logging function
  • Index(es):
    • Date
    • Thread