gcc compiling and linking problem
I am facing a problem in creating an executable.
My code compiles fine but while linking with a static library it says undefined reference to "fuctionname".
Where as instead of creating executable if i am creating a shared library of it then it works fine (i donít know it will run fine or not, but compiling and creation of .so goes fine).
Could you help me out of this problem?
I have heard that shared libraries are permitted to have undefined references. Is it true?
Thanks in advance.