×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2004
    Location
    minsk
    Posts
    432

    compilation error

    can Target LIb can have just function definitions ? without actual implementation and can link without any errors? this works on symbian but on windows phone runtime it ends in linker error!
    is it like windows need the function definitions as well ?
    -J

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: compilation error

    You might want to define the problem in details, and ask it under the actual problematic platform, i.e. here in Symbian c++ section, we would expect the question being on Symbian C++, and if you indeed have problem with Windows Phone application, please ask it under the section for Windows phone.

    if there is something I misunderstood, then please try explaining the problem in more details.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: compilation error

    Declaration:
    Code:
    void main(void);
    Definition (implementation):
    Code:
    void main(void)
    {
        printf("Hello World");
    }
    Quote Originally Posted by julie_777 View Post
    can Target LIb can have just function definitions ?
    A .lib file contains definitions indeed.
    without actual implementation and can link without any errors?
    A .lib file usually contains definitions, otherwise it is not much of a .lib file (ok, it might contain data sections only, I have not really checked). However a .lib file does not contain definitions for all functions existing over the world. It can use functions from other .lib files, and then the final application will need both .lib files to actually build.
    this works on symbian but on windows phone runtime it ends in linker error!
    There is no single .lib file which you can use in both Symbian and WP code.
    is it like windows need the function definitions as well ?
    Yes, it is exactly like Windows. And Linux. And Mac OS. Or QNX. Perhaps BeOS. Or other OS-s from http://en.wikipedia.org/wiki/Compari...rating_systems. Actually there are not too many operating systems which can run programs which are not implemented.

Similar Threads

  1. Compilation error
    By pankaj gupta55 in forum Symbian
    Replies: 11
    Last Post: 2008-11-20, 13:46
  2. Replies: 4
    Last Post: 2007-05-31, 07:06
  3. VS Compilation Error
    By nagir in forum Symbian
    Replies: 2
    Last Post: 2005-12-19, 15:48
  4. Compilation Error - C++ to OPX
    By ckn_fsh in forum Symbian
    Replies: 0
    Last Post: 2004-08-12, 22:45

Posting Permissions

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