Discussion Board

Results 1 to 9 of 9

Thread: Need advice

  1. #1
    Regular Contributor tampstaffs's Avatar
    Join Date
    Sep 2007
    Posts
    62
    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
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    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 pushyami's Avatar
    Join Date
    Jun 2007
    Posts
    28
    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 tampstaffs's Avatar
    Join Date
    Sep 2007
    Posts
    62
    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 tampstaffs's Avatar
    Join Date
    Sep 2007
    Posts
    62
    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 liangji's Avatar
    Join Date
    Oct 2007
    Location
    China-Beijing
    Posts
    7
    How to do this

  7. #7
    Registered User mateen_maldar's Avatar
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,063
    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
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    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 tampstaffs's Avatar
    Join Date
    Sep 2007
    Posts
    62
    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 C++
    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, 16:47
  3. Advice needed --> absolute beginner
    By logismon in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2006-03-06, 13:29
  4. Need advice on quality
    By bgchan80 in forum General Development Questions
    Replies: 0
    Last Post: 2004-11-18, 17:56
  5. Any SMS advice for a university project
    By ColinM in forum General Messaging
    Replies: 7
    Last Post: 2004-01-07, 19: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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved