Fixed:
Added the path
/Users/knr10/Desktop/Bonic_Src/boinc_core_release_6_12_36/mac_build/cares/build/Debug-iphonesimulator
to Project>edit project settings>build>search paths>library search paths.
It did not like the -L so I removed that. I also had a space in the path
that I didn't notice before and that was causing problems.
Thanks so much for all of your help!
On Wed, Jan 11, 2012 at 3:15 AM, arjun sj <arj.sja_at_gmail.com> wrote:
> can you also check if you have added it to the CORRECT PROJET, which
> consumes this library.
> Also, when you give a build, make sure that the libcares.a gets built
> before your other target files that consumes this library.
> On Wed, Jan 11, 2012 at 10:50 AM, Kristin Roher <kristin.roher_at_gmail.com>wrote:
>
>> Hi,
>>
>> I did a google search and it seems as though you can add additional
>> search paths in xcode under project settings>search paths>library search
>> paths. (I am new to xcode). I added the path to libcares.a to this and it
>> is still giving me the same error. Is there any chance that I need to get
>> libcares.so since I currently do not have that anywhere?
>>
>> Just in case I made a mistake here, this is exactly the search path that
>> I added:
>> -L /Users/knr10/Desktop/Bonic_Src/boinc_core_release_6_12_36
>> (tag)/mac_build/cares/build/Debug-iphonesimulator
>>
>> Thanks,
>> Kristin
>>
>> On Tue, Jan 10, 2012 at 8:30 AM, arjun sj <arj.sja_at_gmail.com> wrote:
>>
>>> Hi,
>>>
>>> have you tried to add this path into the "library path". I dont exactly
>>> know in xcode, but atleast in Visual studio, you can configure easily.
>>> So I would suggest,
>>> - quickly see if you can add this path into the "library path", some
>>> equivalent option in xcode and see if it works.
>>> - if it works, you will have to replace it with a relative path...which
>>> is the right way of doing it.
>>>
>>> Regards,
>>> Arjun
>>>
>>>
>>> On Tue, Jan 10, 2012 at 6:48 PM, Kristin Roher <kristin.roher_at_gmail.com>wrote:
>>>
>>>> libcares.a is located in:
>>>>
>>>> /Users/knr10/Desktop/Bonic_Src/boinc_core_release_6_12_36
>>>> (tag)/mac_build/cares/build/Debug-iphonesimulator
>>>>
>>>> Sorry if this is a silly question but how do I add this to the linker
>>>> as you said below? Is it some preference in xcode that I need to edit?
>>>>
>>>> Thanks for your time,
>>>> Kristin
>>>>
>>>>
>>>> On Tue, Jan 10, 2012 at 8:04 AM, Wilfried Goesgens <
>>>> dothebart_at_citadel.org> wrote:
>>>>
>>>>> Kristin,
>>>>>
>>>>> you need to find libcares.so or libcares.a in /usr/lib/ or any other
>>>>> path you specified like this:
>>>>>
>>>>> -L /usr/local/lib
>>>>>
>>>>> to the linker.
>>>>>
>>>>> Tue Jan 10 2012 07:01:32 EST from "Kristin Roher" <
>>>>> kristin.roher_at_gmail.com> Subject: ld: library not found for -lcares
>>>>> I am working on trying to build a project that uses c-ares. However,
>>>>> I am currently getting this error:
>>>>>
>>>>> ld: library not found for -lcares
>>>>>
>>>>> Any insight as to what this means and/or how to fix it would be
>>>>> appreciated.
>>>>>
>>>>> Kristin
>>>>>
>>>>> Wilfried Goesgens
>>>>>
>>>>
>>>>
>>>
>>
>
Received on 2012-01-11