title: Creating binary from executable
body: <p>I need some basic understanding, </p>
  
  <p>I have 4 files in this folder  </p>
  
  <p>Makefile , libfoo_8_3.so , libfoo_9_3.so , test.c</p>
  
  <p>I compile test.c to make object file test.o and .d file. This Compiles fine</p>
  
  <p>Those two dynamic libraries (libfoo_8_3.so libfoo_9_3.so)are used by my c program
  I wanted to make executable.</p>
  
  <p>I am using Makefile, because I needed headers and structures from c files present in the different folder.</p>
  
  <p>I want to make an executable binary, 
  when I do something like </p>
  
  <pre><code>gcc -fno-builtin-log -fno-omit-frame-pointer -msse2 -DMEMS_DEBUG -DMEMS_DISABLED -D__HMAP_64BIT_COMPLIANT_ID_LENGTH__ -DNETOID_LINUX -D_REENTRANT -DXML_BYTE_ORDER=12 -DNX_BYTE_ORDER=12 -DTHIRTY_TWO_BIT -DALLOW_ISERVER_H323 -D_POSIX_PTHREAD_SEMANTICS -DMEMS_DEBUG -ggdb -L/usr/local/lib -L/usr/lib64 -L/SBC/lib/x86_64 -L/SBC/pkgs_x86_64/def/lib -L/SBC/bin/x86_64 -I(Include many folders) 
  -o test test.o 
  
  
  This gives me following error -&gt;
  
  
  est.o: In function `main':
  /SBC/ser/test.c:33: undefined reference to `dlopen'
  /SBC/ser/test.c:35: undefined reference to `dlopen'
  /SBC/ser/test.c:50: undefined reference to `dlsym'
  /SBC/ser/test.c:52: undefined reference to `dlsym'
  /SBC/ser/test.c:68: undefined reference to `tracer_tag_key'
  /SBC/ser/test.c:68: undefined reference to `pthread_getspecific'
  /SBC/ser/test.c:68: undefined reference to `netLogStruct'
  /SBC/ser/test.c:68: undefined reference to `NetLogModuleFacilities'
  /SBC/ser/test.c:68: undefined reference to `NetLogModuleNames'
  /SBC/ser/test.c:68: undefined reference to `NetSyslogSprintf'
  /SBC/ser/test.c:68: undefined reference to `netLogStruct'
  /SBC/ser/test.c:68: undefined reference to `NetLogModuleNames'
  /SBC/ser/test.c:74: undefined reference to `tracer_tag_key'
  /SBC/ser/test.c:74: undefined reference to `pthread_getspecific'
  /SBC/ser/test.c:74: undefined reference to `netLogStruct'
  /SBC/ser/test.c:74: undefined reference to `NetLogModuleFacilities'
  /SBC/ser/test.c:74: undefined reference to `NetLogModuleNames'
  /SBC/ser/test.c:74: undefined reference to `NetSyslogSprintf'
  /SBC/ser/test.c:74: undefined reference to `netLogStruct'
  /SBC/ser/test.c:74: undefined reference to `NetLogModuleNames'
  /SBC/ser/test.c:82: undefined reference to `tracer_tag_key'
  /SBC/ser/test.c:82: undefined reference to `pthread_getspecific'
  /SBC/ser/test.c:82: undefined reference to `netLogStruct'
  /SBC/ser/test.c:82: undefined reference to `NetLogModuleFacilities'
  /SBC/ser/test.c:82: undefined reference to `NetLogModuleNames'
  /SBC/ser/test.c:82: undefined reference to `NetSyslogSprintf'
  /SBC/ser/test.c:82: undefined reference to `netLogStruct'
  /SBC/ser/test.c:82: undefined reference to `NetLogModuleNames'
  </code></pre>
  
  <p>I need a proper understanding of this , or how can I resolve this ? </p>