Re: [Anjuta-list] My Libraries are not being linked! Why?



Hi!

Well, I admit that the documentation is not that great yet...

For things that can be added using pkg-config you can use the dialog
Project->Properties. Select a module and click "Add package" which will
give you a list of availible libraries.

For other libraries you want to link to you have to use the context menu
of the project tab. Select your target (or the directory of the target,
if you have multiple targets and want to use the same settings for all)
and open the context menu. Choose "Properties": A dialog will popup with
entries for nearly all compiler and linker options. Enter the options
like you would pass them on the command line there.

BTW, the devhelp crash bug you found should be fixed if you use a recent
version of devhelp and your distribution provides correct mozilla binaries.

To install anjuta-1.2.4 and 2.1.1 simultaneously you have to use a
different prefix AFAIK.

Regards,
Johannes

Regards,
Johannes

Rob Frohne schrieb:
> Hi Johannes,
> 
> I installed 2.1.1, but I still can't find the settings.  There is a
> dialog asking for configure parameters, and I suspect if I knew what I
> was doing with configure, I could specify the library somehow there.  
> 
> I didn't compile the GLADE plugin or the CVS plugin, but got the others.
> I don't get the problem wiht create_global_tags.sh now.  
> 
> I'm using Ubuntu 6.10, and Syanaptic installs 2.02.  I had compiles
> 1.24a into /usr/local/.  When I compiled 2.1.1 it overwrote 1.24a which
> seemed in the past to be the most usable version.  I suppose I can
> switch by doing a sudo make install in 1.24a's directory.  Is there an
> easy way to get 1.24a installed again simultaneously with 2.1.1?
> 
> Thanks for the hints!  And thanks for working on Anjuta.
> 
> Rob
> 
> On Fri, 2007-02-16 at 13:48 +0100, Johannes Schmid wrote:
>> Hi!
>>
>> Please try anjuta 2.1.1 which includes a dialog for this setting and
>> should fix the other issues you are mentioning. While the
>> ./create_global_tags.sh bug looks rather strange but it is possible
>> caused by /bin/sh not being bash, which is also fixed in current
>> releases (by replacing /bin/sh with /bin/bash...).
>>
>> Regards,
>> Johannes
>>
>> Rob Frohne schrieb:
>>> Hi Johannes,
>>>
>>> Three other notes.  
>>>
>>> 1)  I tried Anjuta 2.02 after your hint, and right clicking doesn't seem
>>> to work for me, as I don't find a place to set the library.
>>>
>>> 2)  I get the following error:
>>>
>>> /usr/bin/create_global_tags.sh: 3: function not found
>>> shift: 11: can't shift that many
>>>
>>> in the Messages window.
>>>
>>> 3)  In both version 1 and 2, it seems that it is impossible to copy
>>> text.  That is really unhandy, when you are using google to search for
>>> solutions to problems, and even when I was trying to send you the error
>>> message above.
>>>
>>> Thanks for your work on Anjuta.  I really like version 1, as it seems to
>>> work better for me, and has a manual.
>>>
>>> Thanks again,
>>>
>>> Rob
>>>
>>>
>>> On Fri, 2007-02-16 at 11:48 +0100, Johannes Schmid wrote:
>>>> Hi!
>>>>
>>>> I assume you use anjuta 1.x!
>>>>
>>>> The compiler and linker options only apply to single files, not to
>>>> projects. I don't remember if there is such a setting for projects in
>>>> anjuta 1.x but I doubt.
>>>>
>>>> In Anjuta 2.x you could set up compiler settings by right-clicking on a
>>>> group/target in project-manager.
>>>>
>>>> Regards,
>>>> Johannes
>>>>
>>>> Rob Frohne schrieb:
>>>>> Hi Everyone,
>>>>>
>>>>> I have followed the instructions in setting the compiler settings and
>>>>> include paths, in the help and shown in this document here.
>>>>> http://www.biology.usu.edu/courses/biol5200-1/HOW-TO/Anjuta-lib.pdf
>>>>> (Using my paths and library of course....)  However, the g++ command to
>>>>> link the programs doesn't include -lmylibrary  where mylibrary is the
>>>>> name of the library libmylibrary.a.
>>>>>
>>>>> Any ideas how to get this to work short of importing the whole library
>>>>> into my project and compiling it as part of my project?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Rob

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]