• 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: Jens Ayton <email@hidden>
  • Date: Thu, 17 Aug 2006 00:57:36 +0200
  • Openpgp: id=84FF254B

Ari Benzane:
> David Dunham:
>> Ari Benzane:
>>>
>>> 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" {
>> }
>
> Sorry I don't follow you - I tried that but got a syntax error.

It should be:

#ifdef __cplusplus
extern "C" {
#endif

// declarations go here

#ifdef __cplusplus
}
#endif


--
Jens Ayton
 _______________________________________________
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: 
 >Re: Undefined Symbols when linking global logging function (From: Ari Benzane <email@hidden>)

  • Prev by Date: Re: Undefined Symbols when linking global logging function
  • 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: Weird inline/struct offset problem
  • Index(es):
    • Date
    • Thread