Find the answer to your Linux question:
Results 1 to 3 of 3
hi all, i am working in uclinux environment,i have compiled the c++ application program using the command ,bfin-elf-g++ and i am getting following undefined reference error, undefined reference to `_our_inet_ntoa' ...
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    7

    Undefined Reference while compiling

    hi all,
    i am working in uclinux environment,i have compiled the c++ application program using the command ,bfin-elf-g++ and i am getting following undefined reference error,

    undefined reference to `_our_inet_ntoa'
    undefined reference to `_getsockname'
    undefined reference to `_stdin'
    undefined reference to `_fopen64
    undefined reference to `_stderr'
    ndefined reference to `_our_random'
    undefined reference to `_our_random32'
    undefined reference to `_send'
    undefined reference to `_ntohl'
    undefined reference to `_select'
    undefined reference to `_socket'
    undefined reference to `_setsockopt'
    undefined reference to `_bind'
    undefined reference to `_ntohs'

    from which library i have to add to solve this problem,any one guide me in this regard

    thanks $ regards
    aswini

  2. #2
    Just Joined!
    Join Date
    Aug 2007
    Posts
    7

    undefined reference

    hi ,

    I have found the reason ,why i am getting following errors, there is no particular function definition ,thats why i am getting such a errors. but i dont know how to link ,from which system contain the definition of that particular errors. could any one guide me.


    with regards
    aswini

  3. #3
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    The commands you use to compile your program are unusual, and are unfamiliar to me. They are probably part of some specialized package. The only thing I can recommend is that you go to the documentation for those commands and see what it says about including libraries at link time.

    I wish I could be more help. Sorry.
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...