Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User alias133's Avatar
    Join Date
    Oct 2004
    Location
    Finland
    Posts
    10
    When I try to import my .mmp-file Carbide.c++ it says:

    my.mmp: Cannot create linked resource my.cpp. Linked resources must have a project as their parent.

    And my.cpp is one of many .cpp-files in the .mmp-file and it's in the middle of other .cpp-files. My .mmp-file is in group-folder. Here is a snip from .mmp-file:

    SOURCEPATH ..
    SOURCE my_path\src\other.cpp
    SOURCE my_path\src\my.cpp
    SOURCE my_path\src\other2.cpp

    Thanks for the help in advance!
    Kimmo Karvinen

  2. #2
    Nokia Developer Expert timm-ah's Avatar
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    Check the release notes. It says relative paths are not not supported for SOURCE keyworkds. Try to make your SOURCPATH inlcude the location of the source, then just put the source by name. E.g.


    SOURCEPATH ..\src
    SOURCE HelloWorldBasic.cpp
    SOURCE HelloWorldBasicApplication.cpp
    SOURCE HelloWorldBasicAppView.cpp
    SOURCE HelloWorldBasicAppUi.cpp
    SOURCE HelloWorldBasicDocument.cpp

    Cheers,
    Tim

  3. #3
    Registered User alias133's Avatar
    Join Date
    Oct 2004
    Location
    Finland
    Posts
    10
    Thanks for the quick help Tim.


    Now I changed my .mmp-file to be

    SOURCEPATH ..\my_path\src
    SOURCE other.cpp
    SOURCE my.cpp
    SOURCE other2.cpp

    and now the .mmp-file imports fine if I use Import .mmp-file but if I use Import .inf-file it says: "path_to_mmp-file\my.mmp: No such file or directory" and the there is a square in the end.

    The bld.inf I'm using has more than one .mmp file and all the others are parsed succesfully, but this one fails always.
    Kimmo Karvinen

  4. #4
    Nokia Developer Expert timm-ah's Avatar
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    Hi - I changed my BLD.INF file to have this line;

    path_to_mmp-file\HelloWorldBasic.mmp

    Then I moved the MMP file to the directory "path_to_mmp-file"
    and it works fine.

    If you could, can you post your directory structure so we can see how your files are set up and exactly where it's missing?

    Thanks,
    Tim

  5. #5
    Nokia Developer Expert timm-ah's Avatar
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    I think what you want is an option to specify header location output? What you are trying to modify is the binary output location (the rsc file in this case.).

    If you could just specify a relative path to epocroot or a full path where you want to output your RSG file would that work?

    Cheers,
    Tim

  6. #6
    Nokia Developer Expert timm-ah's Avatar
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    Sorry, ignore last post. Wrong thread!

Similar Threads

  1. Replies: 13
    Last Post: 2007-12-07, 11:21
  2. Problem in .MMP file
    By yogesh14 in forum Symbian C++
    Replies: 2
    Last Post: 2005-08-26, 07:46
  3. ROM file reading too short
    By itsxbv in forum Symbian C++
    Replies: 0
    Last Post: 2004-06-17, 11:48
  4. About .mmp file
    By chinazou305 in forum Symbian C++
    Replies: 1
    Last Post: 2002-12-10, 22:52
  5. Replies: 0
    Last Post: 2002-11-19, 08:25

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