# Extended character is not valid in an identifier

**URL:** <https://root-forum.cern.ch/t/extended-character-is-not-valid-in-an-identifier/61694>\
**Category:** ROOT\
**Tags:** bug\
**Created:** [September 18, 2024, 9:45am UTC](https://root-forum.cern.ch/t/extended-character-is-not-valid-in-an-identifier/61694 "2024-09-18T09:45:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [September 18, 2024, 9:45am UTC](https://root-forum.cern.ch/t/extended-character-is-not-valid-in-an-identifier/61694/1 "2024-09-18T09:45:48Z")

</div>

### Describe the bug

Just posting this for help for potential users encountering this issue in the future.

At some point, we were unable to run a script with the “+” compilation, ie `root -l test.cpp` worked, but `root -l test.cpp+` failed with the following cryptic error message:

```auto
root -l test.cpp+(\"e\")
root [0] 
Processing test.cpp+("e")...
Info in <TUnixSystem::ACLiC>: creating shared library /tmp/ /tmp//tmp/./test_cpp.so
/tmp/ /tmp//tmp/test_cpp_ACLiC_dict.cxx:3:32: error: extended character is not valid in an identifier
    3 | #define R__DICTIONARY_FILENAME dItmpdI sP sP sP dItmpdIdItmpdItest_cpp_ACLiC_dict
      | ^
/tmp/ /tmp//tmp/test_cpp_ACLiC_dict.cxx:3:32: error: extended character is not valid in an identifier

```

Finally, we figured out that there was some kind of non-standard tab or space symbol within .rootrc’s ACLiC.BuildDir, after copying from an html file to “nano” or something like that. Removing all characters before the path and putting a new space solved the issue.

### To Reproduce

Add a character such as `“` to `~/.rootrc` after `ACLiC.BuildDir:`

### Setup

```auto
ROOT v6.32.04
Built for linuxx8664gcc on Aug 14 2024, 04:13:21
From tags/v6-32-04@v6-32-04
With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Binary directory: /opt/root/bin

```

## Additional context

> **[Error: extended character ” is not valid in an identifier](https://forum.arduino.cc/t/error-extended-character-is-not-valid-in-an-identifier/989196)**
>
> \#include #include #include #include #include // Set these to run example. #define FIREBASE\_HOST “gasd-118cb-default-rtdb.firebaseio.com” #define FIREBASE\_AUTH “DiazPV4zabvUea9nGAa5NKnzlEzYy6QUquUR7q23” #define WIFI\_SSID “Dialog 4G 83D”...

> **[error: extended character ² is not valid in an identifier - Compilers and...](https://community.arm.com/support-forums/f/compilers-and-libraries-forum/55354/error-extended-character-2-is-not-valid-in-an-identifier)**
>
> Hello, 
>  
> The ARM GNU toolchain does not like at all "extended characters" (like '²' or '℃') that are completely OK with other GNU toolcahins (for ARM or other

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [September 18, 2024, 12:43pm UTC](https://root-forum.cern.ch/t/extended-character-is-not-valid-in-an-identifier/61694/2 "2024-09-18T12:43:46Z")

</div>

Dear @ferhue ,

Thanks for the post - this is indeed a useful reference.  
On our side, we’ll try to deal with these special characters, e.g. replacing them with simple ones.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 2, 2024, 12:44pm UTC](https://root-forum.cern.ch/t/extended-character-is-not-valid-in-an-identifier/61694/3 "2024-10-02T12:44:12Z")

</div>

Closed on October 2, 2024, 12:44pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
