Re: Link Fails
Re: Link Fails
- Subject: Re: Link Fails
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 11 Dec 2012 14:11:31 -0700
On Dec 11, 2012, at 1:49 PM, John MacMullin <email@hidden> wrote:
> I have a project, Xcode 4.5.2, 10.8.2, which builds and analyzes fine.
>
> When I attempt an archive, I get:
>
> Undefined symbols for architecture x86_64:
> "_main", referenced from:
> -u command line option
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>
> I have a main. I am also using Skype With scripting bridge, and I assume that it would have a _main.
>
> Any ideas?
If you are sure you have a main() function, then are you sure that the source code that includes the main() function is being built in that particular configuration? You didn't #ifdef it out or remove it entirely from the "compile sources" phase of the build, right? Have you checked the build log to make sure the code is being compiled and linked? If so, have you used the preprocessor to make sure the function is being compiled? And the Scripting Bridge doesn't produce main() functions; they come as standard with all projects for apps or tools.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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: | |
| >Link Fails (From: John MacMullin <email@hidden>) |