Changing executable linking from dynamic to static

Changing executable linking from dynamic to static

Post by Ramesh Panw » Tue, 18 Oct 1994 05:46:54



Hi,

How can I change a dynamically linked executable to a statically
linked executable. I do not have the source code available. Thanks
for any help. Please respond by email.

--Ramesh

 
 
 

1. Problems linking static library on executable and static library

Hi,
  I'm a newbie in programming on Un*x platforms, so maybe, it could
be caused by my lack of experience.

Ok. I have a static library "libSM.a" depending on two libraries one
of them shared: "libErrP.so" and a static one: "libCB.a"

I'm trying to compile an executable "EInvA" linking with both "libSM.a" and
"libCB.a" and get the following error:

CC  -mt -fast -DNONE_CLASH -o RELEASE/EInvA     RELEASE/inva.o
-lsocket -lnsl -ldl -lCstd -lc -lnsl -lsocket -lclntsh
-L/libs/libSM/STATIC -lSM -L/libs/libCB/STATIC -lCB

Undefined symbol                 first referenced in file

int CB::Connect(char*, char*) /libs/libSM/STATIC/libSM.a (libSM.o)
CB::CB()                      /libs/libSM/STATIC/libSM.a (libSM.o)
CB::~CB()                     /libs/libSM/STATIC/libSM.a (libSM.o)

And "CB" symbols are defined in "libCB.a"

?Could someone tell me what could be happening?

Thanks in advanced,
   R.

2. New to Unix - what hardware and software should I buy?

3. shmem works static-linked, but not dynamic-linked

4. HELP: pppd connection terminated

5. dynamic linking -> static linking == some _smaller_ executables

6. Specialix type thingy for Linux RedHat 4.2

7. Static linked std libraryes in Dynamic linked libraryes

8. matroxfb & 2.5.18 BK: unresolved symbols in modules

9. time launching aspect : static link vs dynamic link

10. dynamic linking vs. static linking

11. dynamic link to static link...

12. M y ISP is changing from static ipadresses to dynamic, How do I make the change?

13. converting dynamic executable to static?