Re: Undefined Symbols when linking global logging function
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