Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2008

    Angry [moved] ntohl, ntohs linking problem

    I'm using ntohl, ntohs functions in my project. But I can't build it becouse I have linker errors:
    error LNK2001: CBDERR -- unresolved external symbol _ntohl

    libc.lib is included in project linked libs. But it still unresolved. Please help, becouse I've searched everywere and can't resolve it. What is missing?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: ntohl ntohs linking problem

    If it is an OpenC-related question, ask it in the proper forum (few clicks back on the top). Standard Symbian SDK-s do not contain libc.lib at all.

  3. #3
    Registered User
    Join Date
    Aug 2003
    Oulu, Finland

    Re: [moved] ntohl, ntohs linking problem

    Have you #included arpa/inet.h properly?

    It should #define ntohl and ntohs to other names that then get linked against:
    #ifdef __SYMBIAN32__
    #define ntohl htonl
    #define ntohs htons

  4. #4
    Registered User
    Join Date
    Jun 2008

    Re: [moved] ntohl, ntohs linking problem

    Thank you very much!!! It's linked!

Similar Threads

  1. [Moved] Problem in displaying a Volume Setting Page
    By amey_symbian in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-08-04, 10:04
  2. [moved] Single line text problem
    By lalitjadiya in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-06-21, 10:11
  3. [moved] Problem with connection
    By treiop in forum General Development Questions
    Replies: 1
    Last Post: 2008-06-19, 13:09
  4. Linking problem using RDbNamedDatabase
    By paulrenn in forum Symbian
    Replies: 1
    Last Post: 2003-06-23, 08:01
  5. linking .exp file problem
    By skdas in forum Symbian
    Replies: 0
    Last Post: 2003-04-23, 07:58

Posting Permissions

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