Comments (7)
Thank you for the hint for debug. I've found the root cause and the solution.
The keyword __int128
is added into the keyword list of the scanner CPreprocessor
only when GCC version >= 4.7. By default, no GCC version is set and thus the keyword is not identified.
So the solution is setting GCC version number by setting the key __GNUC__
and __GNUC_MINOR__
in the Map<String, String> definedSymbols
. Then __int128
can be parsed.
from cdt.
Can you add instructions on how to build and run your example, I get:
$ java cdtdemo.Main
Error: Unable to initialize main class cdtdemo.Main
Caused by: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException
from cdt.
FWIW the sample you have works if I open it in a CDT editor, but there is something odd happening around the * __Y;
as if I remove the ;
I don't get an error:
but I do get an error if I remove the ;
on the next line I do:
from cdt.
Can you add instructions on how to build and run your example, I get:
$ java cdtdemo.Main Error: Unable to initialize main class cdtdemo.Main Caused by: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException
It can be runned by ./gradlew run.cdtdemo
from cdt.
FWIW the sample you have works if I open it in a CDT editor, but there is something odd happening around the
* __Y;
as if I remove the;
I don't get an error:but I do get an error if I remove the
;
on the next line I do:
The strange thing is that the IASTProblem
(actually CASTProblemStatement
I think) locates itself at an 8
in __int128
from cdt.
The issue is the __int128
correct? I am not sure what the solution is, I recommend having a look at the CDT test suite org.eclipse.cdt.core.parser.tests.ast2.AST2TestBase.parse(String, ParserLanguage, boolean, boolean, int) to see if that guides you.
from cdt.
That is great to hear. I'll close this issue now.
from cdt.
Related Issues (20)
- java.lang.NullPointerException: Cannot invoke "org.eclipse.cdt.core.parser.IToken.getType()" because "token" is null
- Migrate from javax.inject|annotation to Jakarta
- *.S files are not preprocessed in managed builds HOT 11
- Switch from "Require-Bundle: org.eclipse.osgi.services" to "Import-Package" directive HOT 1
- Adding new lines above collapsed code breaks the display of collapsed code
- std::optional is not working on Eclipse 4.30.0 HOT 4
- Invalid template Arguments for std::map in Eclipse 2023-12 with GCC version 13.2.0 HOT 5
- Improve workflow for new users when MinGW toolchain not detected HOT 2
- Terminal does not read Eclipse variables used as argument for External Executables HOT 1
- Jenkins CI failing to complete builds HOT 4
- Macro expansion for functions and function pointers
- Add compile-commands.json generation for Managed Build Projects HOT 12
- Remove Build and Clean command fields from Launch Bar Launch Configuration, Build Settings tab
- Fix resource leak warnings for org.eclipse.cdt.core.utils
- Improve localization for `org.eclipse.tools.templates.ui` bundle
- An internal error occurred during: "Launching Eclipse Application". Cannot invoke "java.util.List.stream()" because the return value of "java.util.Map.get(Object)" is null HOT 3
- Binding lookup for Constructor Call vs Method Call
- Platform APIs have been removed breaking CDT build on latest platform dependencies
- NPE after creation of new cmake project
- Enhanced static library presentation within CMake projects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdt.