Discussion Board

Results 1 to 9 of 9

Thread: Need advice

  1. #1
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    62

    Need advice

    Hi all,
    I am new to symbian.I am trying to port a Linux application.I am getting the following errors:

    Timeb.h missing and malloc.h missing.Do i need to download them and place it or are there any alternative files available in symbian.Waiting for any advice.
    Thx in advance.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Need advice

    Which SDK you are using.

    Normally if you are using Symbian V9 with OpenC SDK then you will get less errors While Compiling.

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    28

    Re: Need advice

    yeah..you have to replace the functions you are using from Timeb.h and malloc.h files with those similar functions available functions in symbian...................

  4. #4
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    62

    Re: Need advice

    I am using Carbide v 1.2 Sdkmr_2 with open c.I am getting timer errors and

    illegal implicit conversion from struct timespec* to const struct timespec*

  5. #5
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    62

    Re: Need advice

    Hi pushyamani,

    I substitued timeb things with Timeval structure found in _timeval.h.But was looking for substitute for malloc.h. And after substituting the timeb structure with timeval I am finding the following errors:

    ..\..\..\..\9.1\S60_3rd_MR_2\EPOC32\include\stdapis\sys\_timeval.h undefined identifier 'suseconds_t'
    ..\..\..\..\9.1\S60_3rd_MR_2\EPOC32\include\stdapis\sys\_timeval.h undefined identifier '__time_t'
    ..\..\..\..\9.1\S60_3rd_MR_2\EPOC32\include\stdapis\sys\_timeval.h undefined identifier '__suseconds_t'

  6. #6
    Registered User
    Join Date
    Oct 2007
    Location
    China-Beijing
    Posts
    7

    Re: Need advice

    How to do this

  7. #7
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Need advice

    hi,

    yesterday i was trying on this..

    actually the struct of timeval should be

    struct timeval
    {
    time_t someone ,// i forgot this varable name but not __time_t
    long suseconds_t
    }


    and the ifndef mentioned above the headers for it is not properly defined anywhere that's why the reasons of occurence of these errors...

    Regards,
    Mateen Maldar
    Last edited by mateen_maldar; 2007-10-16 at 08:22. Reason: quotes
    "Whatever the mind can conceive and believe, the mind can achieve"

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Need advice

    Quote Originally Posted by tampstaffs View Post
    Hi pushyamani,

    I substitued timeb things with Timeval structure found in _timeval.h.But was looking for substitute for malloc.h. And after substituting the timeb structure with timeval I am finding the following errors:

    ..\..\..\..\9.1\S60_3rd_MR_2\EPOC32\include\stdapis\sys\_timeval.h undefined identifier 'suseconds_t'
    ..\..\..\..\9.1\S60_3rd_MR_2\EPOC32\include\stdapis\sys\_timeval.h undefined identifier '__time_t'
    ..\..\..\..\9.1\S60_3rd_MR_2\EPOC32\include\stdapis\sys\_timeval.h undefined identifier '__suseconds_t'
    time_t in Unix OS is a data type representing a point in time is a signed integer data type. so you can repace it with Unsigned Int32.

  9. #9
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    62

    Re: Need advice

    Hi,
    getting the following errors now:

    ..\..\..\..\9.1\S60_3rd_MR_2\EPOC32\include\libc\netinet\ip_icmp.h undefined identifier 'n_short' u line 46 1192561956437 13588
    ..\..\..\..\9.1\S60_3rd_MR_2\EPOC32\include\libc\netinet\ip_icmp.h undefined identifier 'n_time'

    any advice??

Similar Threads

  1. Hey guys..nid some advice and help!!.. itz urgent..
    By markangelortuyo in forum Symbian
    Replies: 1
    Last Post: 2007-06-10, 19:38
  2. Advice on T-Mobile Carrier
    By prajwol123 in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 0
    Last Post: 2007-03-23, 17:47
  3. Advice needed --> absolute beginner
    By logismon in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2006-03-06, 14:29
  4. Need advice on quality
    By bgchan80 in forum General Development Questions
    Replies: 0
    Last Post: 2004-11-18, 18:56
  5. Any SMS advice for a university project
    By ColinM in forum General Messaging
    Replies: 7
    Last Post: 2004-01-07, 20:52

Posting Permissions

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