This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to change the 'include" directory in RVDS

Note: This was originally posted on 6th September 2010 at http://forums.arm.com

Hallo,

I have problem build my project in RVDS. I suspect it is b'coz the include path.

"C:\Program Files\ARM\RVCT\Data\4.0\650\include\windows\string.CC"

When I create new C++ project, RVDS automatically set the include path to the above. How can I change that?

I have add new include path but its not appear in the include folder.
Below are the details error
"C:\Program Files\ARM\RVCT\Data\4.0\650\include\windows\string.CC", line 840: Er
ror:  #298: inherited member is not allowed
  compare (size_type __pos1, size_type __n1,
  ^
"C:\Program Files\ARM\RVCT\Data\4.0\650\include\windows\string.CC", line 888: Er
ror: At end of source:  #65: expected a ";"
"C:\Program Files\ARM\RVCT\Data\4.0\650\include\windows\string.CC", line 888: Er
ror: At end of source:  #67: expected a "}"

I don't have this issue in Vusual C++.

What is the best way to import successfull project from Visual C++ to RVDS?

Anyone who have experience using MIRACL program in RVDS, please help me?
Parents
  • Note: This was originally posted on 6th September 2010 at http://forums.arm.com

    When I create new C++ project, RVDS automatically set the include path to the above. How can I change that?

    What would you change it to?  armcc doesn't necessarily work with just any library headers -- it expects to use it's own.

    Where armcc searches for #includes is described in the documentation [url="http://infocenter.arm.com/help/topic/com.arm.doc.dui0472a/Chdcdicj.html"]http://infocenter.arm.com/help/topic/com.a...a/Chdcdicj.html[/url] (imagine a slightly impatient tone).

    Unless you have #defined something that the header file uses (or worse, editted the header file), you should not get any syntax errors from the header file.

    Does compiling just
    #include <string>
    string s;

    work for you?

    Because it looks like the problem happens during implicit inclusion for template instantiation, you may have to resort to using '-E --no_preprocess_only' to see the effective preprocessed file and then look for anything wrong with the correpsonding line (and those near it).
Reply
  • Note: This was originally posted on 6th September 2010 at http://forums.arm.com

    When I create new C++ project, RVDS automatically set the include path to the above. How can I change that?

    What would you change it to?  armcc doesn't necessarily work with just any library headers -- it expects to use it's own.

    Where armcc searches for #includes is described in the documentation [url="http://infocenter.arm.com/help/topic/com.arm.doc.dui0472a/Chdcdicj.html"]http://infocenter.arm.com/help/topic/com.a...a/Chdcdicj.html[/url] (imagine a slightly impatient tone).

    Unless you have #defined something that the header file uses (or worse, editted the header file), you should not get any syntax errors from the header file.

    Does compiling just
    #include <string>
    string s;

    work for you?

    Because it looks like the problem happens during implicit inclusion for template instantiation, you may have to resort to using '-E --no_preprocess_only' to see the effective preprocessed file and then look for anything wrong with the correpsonding line (and those near it).
Children
No data