Re: multiple definitions of symbol _test ?
Re: multiple definitions of symbol _test ?
- Subject: Re: multiple definitions of symbol _test ?
- From: "Nima Tiran" <email@hidden>
- Date: Fri, 30 Mar 2007 18:05:15 -0400
On 3/30/07, Douglas Norton <email@hidden> wrote:
How is test defined?
I didn't define "_test" anywhere in project.
I am guessing it is an inline in a header file, along with its
implementation? Is that header file included by more than one source
file?
Yes, i searched for inline in my project, found couple of them in
header including implementation, but this is part belong to Quark's
SDK that I must include in my project (I'm developing Plug_in for
QuarkXpress).
I suspect that gcc is choosing not to respect the inline, as it is
allowed to do, so the routine gets recompiled into every source file,
hence multiple definitions at link time.
Is there anything else in compiler settings that I can do to fix this
problem without changing the SDK's source file ?
I use "OTHER_CFLAGS = -fno-inline" for C/C++ in build setting as the
SDK suggests to set them this way. removing these wont help either.
If I have guessed correctly, move the implementation into the/a
source file.
Douglas
Appreciate for your hints
-Nima
On Mar 30, 2007, at 2:24 PM, Nima Tiran wrote:
> The code is in C++, although some few files have ".cpp" extension but
> they were coded with C.
>
> On 3/30/07, chinmoy Gavini <email@hidden> wrote:
>> It looks like a compile time error as opposed to a linker error.
>> Could you
>> give more context? It looks like you are trying to compile C++
>> code? Are you
>> using Objective-C++ , or is it purely C++? The error looks like a
>> name
>> conflict(two identifiers using the same name), but it might be a more
>> serious issue which the compiler thinks is a naming conflict.
>>
>> Try pasting the results of the entire build log. This page shows
>> how to view
>> the detailed log of the build:
>>
>> http://developer.apple.com/documentation/DeveloperTools/Conceptual/
>> XcodeUserGuide/Contents/Resources/en.lproj/
>> 05_07_bs_building_product/chapter_34_section_4.html#//apple_ref/
>> doc/uid/TP40002693-SW14
>>
>> Chinmoy.
>>
>>
>> On 3/30/07, Nima Tiran <email@hidden> wrote:
>> >
>> > Hi,
>> >
>> > I'm new to Xcode and sorry if I ask an elementary question, I'm
>> > porting a project from CodeWarriro to Xcode 2.4 and when I
>> compile the
>> > project I get the following error and messages. Can someone
>> points me
>> > to what could be wrong in setting/code ?
>> >
>> >
>> > - /Volumes/Development/Quark7.0
>> > XDK/SampleXTs/MyApp/build/MyApp.build/ppc
>> > i386/Release.build/Objects-normal/ppc/MyApp(1 error , 1
>> warning)
>> >
>> > - warning flag: -init _XTActivateCallback ignored (-dylib
>> was not
>> specified
>> > - multiple definitions of symbol _test
>> > - Command /usr/bin/g++ -4 failed with exit code 1
>> >
>> >
>> >
>> > P.S. I use the MacPro, OS: Tiger
>> >
>> > TIA,
>> > Nima
>> > _______________________________________________
>> > Do not post admin requests to the list. They will be ignored.
>> > Xcode-users mailing list (email@hidden )
>> > Help/Unsubscribe/Update your Subscription:
>> >
>> 40gmail.com
>> >
>> > This email sent to email@hidden
>> >
>>
>>
>>
>> --
>> Chinmoy Gavini
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 402point5fish.com
>
> This email sent to email@hidden
_______________________________________________
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
_______________________________________________
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