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