I make both lib in code block.
my question is that link both lib with another program(prj1) are same.
1) copy dll file and past in prj1.
2)setting->compile setting->search dir->compiler then add (lib location)
// I think it is for locating header file.
3)setting->compile setting->linker setting->link lib add (.a file)
//link static lib
both case it work.
I haven't find any diff in static and dynamic lib.
in both case three file is needed to use any lib
1).dll 2).a 3) .h
can any one tell me , am I ok in use both lib.
The difference is in the final executable, if you link statically you don't need the .a to execute the program, because the code needed is embed in it.
With dynamic linkage you may change the behaviour of your program by simply changing the .so (no need to rebuild)
> 1) copy dll file and past in prj1.
I would recommend you to maintain a central repositories for your libraries (like ~/usr/lib)
so you don't have to move around them, and it is easier to update