×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    22

    Unhappy Building a project with C and C++ files under Carbide

    Hi,

    I can succesfully build and link my project from command line (SDK S60-SDK-0616-3.0-mr.3.749) both on target WINSCW and GCCE.
    I need to build it from Carbide.c++ (Developer) to run on-device debugging.
    From Carbide I get several linking problems: I have to comment "extern C" statements otherwise I can't compile libraries and anyway, while linking the app altogether, references from C code are not found.
    I suspect the cause being Carbide compiling both C and C++ file with option "-x c++" (I can see it from console prints), while SDK command line is based on gcce.mk options stating:
    # For .cpp Source files
    CPP_LANG_OPTION=-x c++
    # For .c Source files
    C_LANG_OPTION=-x c
    that make it work correctly.
    Does anybody know how to make Carbide distinguish between C and C++ source files?
    (By the way, CodeWarrior had the same problems).
    Thanks,

    Diego

  2. #2
    Registered User
    Join Date
    Sep 2005
    Posts
    22

    Re: Carbide.c++ Hints and Tips

    Support or feedback on Carbide and CodeWarrior from FN experts seems quite scarce, even on fundamental (though somehow "advanced") issues like the post on variables in dlls during on-device debugging, or my post on building projects containing C and C++ source files. Is there any other resource where discussion is going on with Carbide experts?
    Thanks,

    Diego

  3. #3
    (Retired) Nokia Developer Admin.
    Join Date
    Jan 2006
    Location
    Michigan
    Posts
    4,664

    Re: Carbide.c++ Hints and Tips

    Quote Originally Posted by loquendo
    Support or feedback on Carbide and CodeWarrior from FN experts seems quite scarce, even on fundamental (though somehow "advanced") issues like the post on variables in dlls during on-device debugging, or my post on building projects containing C and C++ source files. Is there any other resource where discussion is going on with Carbide experts?
    Thanks,

    Diego
    The responsiveness of our Forum Experts and Champions is one of the highest for any free support group. Although they are volunteers we have over a 70% response rate to the threads in less than 24 hours. This is about as good as it gets for free support. Still it is not good enough for Forum Nokia and we are taking steps to increase the rate even higher if not faster.

    This however, does not mean that we will answer any and all questions submitted. Some questions are beyond the scope of a discussion board or are not relevant questions.

    I hope that you continue to ask questions and help others with their questions it is only by being a total community can a discussion board be truly successful.

    Ron

  4. #4
    (Retired) Nokia Developer Admin.
    Join Date
    Jan 2006
    Location
    Michigan
    Posts
    4,664

    Re: Building a project with C and C++ files under Carbide

    Symbian is a C++ based OS, you should always have the C++ compiler enabled. If you have pragmas and such that are not C++ they are in errors.

    extern "C" should always be wrapped with #if cplusplus even when in a .c source file with. I'm not sure how to do this other than correct your source codes so they are correct.

    Ron

    Quote Originally Posted by loquendo
    Hi,

    I can succesfully build and link my project from command line (SDK S60-SDK-0616-3.0-mr.3.749) both on target WINSCW and GCCE.
    I need to build it from Carbide.c++ (Developer) to run on-device debugging.
    From Carbide I get several linking problems: I have to comment "extern C" statements otherwise I can't compile libraries and anyway, while linking the app altogether, references from C code are not found.
    I suspect the cause being Carbide compiling both C and C++ file with option "-x c++" (I can see it from console prints), while SDK command line is based on gcce.mk options stating:
    # For .cpp Source files
    CPP_LANG_OPTION=-x c++
    # For .c Source files
    C_LANG_OPTION=-x c
    that make it work correctly.
    Does anybody know how to make Carbide distinguish between C and C++ source files?
    (By the way, CodeWarrior had the same problems).
    Thanks,

    Diego

  5. #5
    Nokia Developer Expert
    Join Date
    Oct 2004
    Location
    Austin, TX USA
    Posts
    271

    Re: Forum Responsiveness

    We try our best to make sure there are responses to all the questions on the forum, but there is no guarantee; handling the regular support load keeps us busy full time. When we have a bit of spare time we check the forums to see if there are any unanswered questions.

    It's barely been a day since you posted your question. Please be patient and we'll try to help you.

    Regards,

    Matt P.

Similar Threads

  1. Mobile version of forum Nokia
    By rulirahm in forum Mobile Web Site Development
    Replies: 2
    Last Post: 2006-06-14, 07:24
  2. Forum Nokia Champions Announced
    By Nokia Ron in forum Symbian C++
    Replies: 1
    Last Post: 2006-02-10, 00:54
  3. Forum Nokia Champions Announced
    By Nokia Ron in forum Mobile Java General
    Replies: 1
    Last Post: 2006-02-09, 23:54
  4. Forum Nokia SMSC test CIMD2 Account
    By santanubiswas in forum General Messaging
    Replies: 1
    Last Post: 2003-02-20, 09:15

Posting Permissions

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