×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    May 2003
    Posts
    96

    Carbide: linker error. Too many files?

    Hello guys,

    I am compiling with Carbide a project which has about 400 files between headers and source.
    When I’ve included all the files, they would compile but not link:
    Error: command line is too long.

    Then I’ve flattered the directories structure so to have a shorter command line to give to the linker.
    It looks like it had some effects, but now I get another – I believe related – problem:
    the linker doesn’t find the symbols.

    Example:
    file1.c: extern int xxx;
    file2.c int xxx = 1;

    Error:
    undefined reference to xxx, resource: file1.c

    file2.c it is in the command line given to the linker but it looks like the linker doesn’t care.

    Question: does the linker has as well a limitation about the number of files that can be included?

    Any idea about how to solve the problem?

    Thanks in advance,
    Mik

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

    Re: Carbide: linker error. Too many files?

    Mik,

    What happens if you build it from the command line with bldmake and abld?

    Regards,

    Matt P.

  3. #3
    Regular Contributor
    Join Date
    May 2003
    Posts
    96

    Re: Carbide: linker error. Too many files?

    Hi,

    from the command line I get errors that Carbide wouldn’t catch/complain about.
    Like:
    Trace.h:97: badly punctuated parameter list in `#define'

    which is:
    #define NEW_TRACE( uComponent, eLevel, ... ) \
    Trace( uComponent, eLevel, __VA_ARGS__ )


    Please note : the same project with much less files (about 80) and with Trace.h included, compiled, linked and run perfectly Carbide and N80.
    I may be wrong but I think it is a linker problem.... similar to this one:
    http://discussion.forum.nokia.com/fo...ad.php?t=91657

    Hoping for suggestions,
    Mik

  4. #4
    Regular Contributor
    Join Date
    May 2003
    Posts
    96

    Re: Carbide: linker error. Too many files?

    Problem solved:
    I've moved to ARM compiler and everything compile & links nicely.

    Mik

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

    Re: Carbide: linker error. Too many files?

    Interesting. So this only happens with GCCE? Or does it happen with WINSCW as well?

    Regards,

    Matt P.

Similar Threads

  1. Replies: 3
    Last Post: 2006-08-29, 07:09
  2. Import\Export Project Problem in Carbide
    By mohsin.sohail in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2006-07-17, 20:20
  3. Carbide cannot find my include files help!!
    By burakalakus in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2006-06-14, 23:16
  4. Wrong make.exe for "ordinary" c/c++ files after installing carbide
    By Pengatom in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2006-03-07, 16:28
  5. Issues with Carbide vs 2.0 installer!
    By kt10208 in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2006-01-16, 09:27

Posting Permissions

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