ARM Technical Support Knowledge Articles

What restrictions does Eclipse impose on source file names?

Applies to: RealView Development Suite (RVDS)

Answer

Eclipse's C/C++ Development Tooling (CDT) uses GNU makefiles to manage dependencies. The differences between supported shell characters on Windows and Linux systems results in a number of file and path limitations in Eclipse projects. Command-lines containing a character that is not supported on the host Windows or Linux system result in command-line parsing errors that cause projects to fail to build. ARM recommends that you:

  • On Windows: do not place a backslash at the end of include paths. 
    For example, always use H: rather than H:\

  • On all platforms: do not use spaces in file names.
    C:Work is a good choice of Eclipse workspace on Windows

  • On Linux or in UNIX-style shells on Windows: use quotes around command-line options such as 
    --first and --keep that contain parentheses:

    armlink "--first=init.o(init)" "--keep init.o(reset)" main.o -o main.axf

  • On Windows: do not use the MSYS shell. Command-line options such as --apcs that start with forward slashes will cause builds to fail on Windows under the MSYS shell.

Article last edited on: 2009-12-01 15:45:45

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential