Author Topic: In the codeblocks 10.05 ,why I cant use the "lld" for long long int ???  (Read 14155 times)

Offline Reticent

  • Single posting newcomer
  • *
  • Posts: 4
In the codeblocks 10.05 ,why I cant use the "lld" for long long int ??? But int the 8.02 I can use "lld" for long long int ,Why??

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
It's not a matter of Code::Blocks, it's a matter of the compiler.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F

What exact is the errror you get ?

Offline Reticent

  • Single posting newcomer
  • *
  • Posts: 4
It's not a matter of Code::Blocks, it's a matter of the compiler.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F

What exact is the errror you get ?

In the codeblocks 10.05 use the c++ scanf("%lld",&a); a is  long long int,then there are two warning

warning: unknown conversion type character 'l' in format
warning: too many arguments for format

but in the codeblocks 8.02 have no these warning .....

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
And, the two compilers you are using is?

Edit: Include the Compiler version number in the answer!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Reticent

  • Single posting newcomer
  • *
  • Posts: 4
And, the two compilers you are using is?

Edit: Include the Compiler version number in the answer!

Tim S.

You mean the tdm-mingw-1.908.0-4.4.1-2 ??? Is it ?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post

You mean the tdm-mingw-1.908.0-4.4.1-2 ??? Is it ?

The difference is caused by the compiler version of MinGW GCC used.

This IS NOT an Code::blocks problem in any way.
See and post on a site like this for Compiler only questions like this.
http://cboard.cprogramming.com/cplusplus-programming/118149-long-long-int-gplusplus-mingw.html

I get no warning with MinGW GCC 3.4.5 (shipped with CB 8.02 in some cases)
But, I get warnings using MinGW GCC 4.5.2 TDM-1.

I would guess you are using MinGW GCC 4.4.1 TDM-2

Tim S.
« Last Edit: April 26, 2011, 06:51:53 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Reticent

  • Single posting newcomer
  • *
  • Posts: 4
And, the two compilers you are using is?

Edit: Include the Compiler version number in the answer!

Tim S.

You mean the tdm-mingw-1.908.0-4.4.1-2 ??? Is it ?


Thank you, I change the old version mingw will be well.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
See and post on a site like this for Compiler only questions like this.
http://cboard.cprogramming.com/cplusplus-programming/118149-long-long-int-gplusplus-mingw.html

Follow and read the link!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org