//mycode.c

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <netdb.h>
#include <ctype.h>
#include <time.h>
                                                                                
                                             
#include <OpenIPMI/ipmiif.h>
#include <OpenIPMI/ipmi_smi.h>
#include <OpenIPMI/ipmi_err.h>
#include <OpenIPMI/ipmi_auth.h>
#include <OpenIPMI/ipmi_lan.h>
#include <OpenIPMI/ipmi_posix.h>
                                                                                
                                                                                
                                                                                
          
int main(int argc, char *argv[])
{
  printf(\"Calling main\\n\");
                                                                                
                                             
  os_handler_t *os_hnd;
  os_hnd = ipmi_posix_setup_os_handler();
                                                                                
                                             
  return 0;
}

I am compiling \'mycode.c\' like below:
      gcc mycode.c

it\'s giving the compilation error like below:
  
/tmp/ccSVQlip.o(.text+0x21): In function `main\':
: undefined reference to `ipmi_posix_setup_os_handler\'
collect2: ld returned 1 exit status

why this error coming, whether linking problem.
  
tell me my how to compile above \'mycode.c\'using gcc in command line, i dont 
want compile through \'make\' 

Thanks
barani
    

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to