Skip to main content
Visitor II
February 26, 2009
Question

Creating and Using Library In Anglia

  • February 26, 2009
  • 3 replies
  • 598 views
Posted on February 27, 2009 at 00:23

Creating and Using Library In Anglia

    This topic has been closed for replies.

    3 replies

    sr_shindeAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:57

    Hi all

    I am using Anglie IDE and GCC compiler.

    I want to create library file and want to link the same in other project.

    I have created library using Anglia. But when I add it in my project and build the project. It is not getting linked and it gives undefined reference for the function in library.I have included header file in c file where I have called the library function.

    Regards

    Sai

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:57

    Just add the lib to the 'user libs' section of the linker options - omitting the lib suffix .a

    you may also need to add the lib path to the linker options.

    Cheers

    sjo

    sr_shindeAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:57

    Thank you sjo

    I have followed your instructions and got success in creation and use of library.

    Regards

    Sai