Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User symfrog's Avatar
    Join Date
    Sep 2006
    Posts
    32
    Hi

    I'm trying to link two projects in the same workspace. Essentially I'm trying to make it so that project 1 references the header/source files in project 2.

    I added project 2's header file location in project 1's properties->System Options-> User Include Paths. This causes no errors in project 1's code when including Project 2 headers, but during the linking phase it does not find project 2!

    Can anyone suggest a way to link and build this setup correctly?

  2. #2
    Super Contributor mitts's Avatar
    Join Date
    Sep 2004
    Posts
    1,048
    Your are sort of trying to break the fundamental logic of the IDEs. The main idea of the IDE is that "what you see in the project is the project". By adopting this logic, the project can automatically "know" what needs to be built to make up a single build artifact.

    So if you want to share code between projects, what you can do is you can import the sources (using Import File system) from anywhere (including other projects) by providing just a link to them or be copying. Once the source is visible in the project you want to build, the IDE (Eclipse/Carbide) understands by magic that these are the entities that you want to build together and is able to help you from there on...

  3. #3
    Registered User symfrog's Avatar
    Join Date
    Sep 2006
    Posts
    32
    Hi

    Thanks for ur reply. This means everytime I make a change in one project i have to move it to the other project. This is the scenario i am trying to avoid, in java eclipse this is possible by referencing another project, but not so in carbide.c++?

  4. #4
    Registered User villheik's Avatar
    Join Date
    Aug 2006
    Posts
    13
    I am currently using Carbide.c++ and S60 3rd ed. and I have 2 projects, EXE project and LIB project which are linked.

    If you want to use a LIB in another project you just need to add it to correct places in project properties of the other (EXE etc.) project:
    C/C++ Build > Tool Settings > System Options > User Include Paths
    Add the location of "inc" directory of the LIB project here

    C/C++ Build > Tool Settings > WINSCW C/C++ Linker > Libraries > Libraries
    Add your .lib file name here

    Project References
    Chech the checkbox of the LIB project (this just causes the LIB project to be rebuilt if it is changed and EXE project is rebuilt).

    Similar process is propably applicable to DLL:s also.

Similar Threads

  1. Using Nokia Demo Projects with Eclipse 3.2.0
    By PionsysAtNokia in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2006-10-10, 15:24
  2. Imported Carbide midp project to new workspace
    By whome1 in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2006-09-29, 01:09
  3. New to Development, Need Help - Linking Error
    By meihuadao in forum Symbian C++
    Replies: 2
    Last Post: 2006-04-20, 06:28
  4. Linking Static DLL with another Static DLL
    By symbianfresher in forum Symbian C++
    Replies: 6
    Last Post: 2006-01-09, 04:23
  5. MMP file not shown in MsDev Workspace
    By rick.andrews in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2005-01-22, 11:18

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