Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unknown symbol __uint128_t(Codan producing unknown symbol error message)
Unknown symbol __uint128_t [message #912499] Thu, 13 September 2012 17:09 Go to next message
Brad Taylor is currently offline Brad TaylorFriend
Messages: 6
Registered: July 2011
Junior Member
I am running JUNO CDT. I have a simple program
I am running on Fedora 17 using GCC

Program compiles ok and I get no gcc errors. However I get what appears to be a codan error. If I turn off the "type cannot be resolved" codan preference, I get no error. Is there some simple way to allow this definition?

int mainxx() {
__int128_t a = 0;
return a >> 127;
}


Description Resource Path Location Type
Type '__int128_t' could not be resolved codantst.c /testing/src line 9 Semantic Error
Re: Unknown symbol __uint128_t [message #912850 is a reply to message #912499] Fri, 14 September 2012 09:31 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
CODAN is missing an include path. You have to add it.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Unknown symbol __uint128_t [message #913165 is a reply to message #912850] Fri, 14 September 2012 22:37 Go to previous messageGo to next message
Brad Taylor is currently offline Brad TaylorFriend
Messages: 6
Registered: July 2011
Junior Member
Ok, any more hints? Like the name of the path? I thought the symbol is a "builtin symbol". I found this post on another site

gcc has in-built 128 bit integer types on 64 bit machines. These can be accessed via __uint128_t for unsigned and __int128_t for signed 128 bit types.

I "assume" this is a true statement.

any help appreciated.
Re: Unknown symbol __uint128_t [message #913272 is a reply to message #913165] Sat, 15 September 2012 06:01 Go to previous messageGo to next message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
On 15/09/12 00:37, Brad Taylor wrote:
> Ok, any more hints? Like the name of the path? I thought the symbol is a
> "builtin symbol". I found this post on another site
>
> gcc has in-built 128 bit integer types on 64 bit machines. These can be
> accessed via __uint128_t for unsigned and __int128_t for signed 128 bit
> types.
> I "assume" this is a true statement.
> any help appreciated.

Try using "long long" and "unsigned long long". __uint128_t
and__int128_t are (compiler) implementation reserved words: they begin
with __.


--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl


Cheers,

Joost
Re: Unknown symbol __uint128_t [message #913515 is a reply to message #913272] Sat, 15 September 2012 21:33 Go to previous message
Brad Taylor is currently offline Brad TaylorFriend
Messages: 6
Registered: July 2011
Junior Member
I could, but i want the compiler implementation.
The following does not give a codan error

__int32_t x = 0;

and it uses the two underscores at the beginning. It appears to me that codan just does not know that about the new compiler defined types. It would seem that there should be an easy place to tell codan that these are valid types

any help appreciated.
Previous Topic:Extend CEditor via a plugin
Next Topic:how can we create make target into eclipse make target view and invoke from CDT code
Goto Forum:
  


Current Time: Fri Oct 11 02:48:45 GMT 2024

Powered by FUDForum. Page generated in 0.05911 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top