cancel
Showing results for 
Search instead for 
Did you mean: 

Creating and Using Library In Anglia

sr_shinde
Associate II
Posted on February 27, 2009 at 00:23

Creating and Using Library In Anglia

3 REPLIES 3
sr_shinde
Associate II
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

sjo
Associate II
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_shinde
Associate II
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