64bit Integer in MinGWC
ちょっとだけ64bit整数を使う必要があって、gccでは、ちゃんとunsigned long long int (unit64_t)が使えて32bitマシンでも64bit整数が扱えることがわかったので、手軽に使えるgcc系統のmingwcで試すことにしました。コンパイル等は比較的すんなり通ったのですが、どうもprintfで書式指定に使えるはずのllが使えない。色々と調べていたら、mingw cでは、MicrosoftのCランタイムライブラリに依存していて
http://www.mingw.org/MinGWiki
C++(g++)の場合は、cout への出力はuint64_t型の変数をきちんと認識して自動的にフォーマッ
Thank you for reading this post. You can now Leave A Comment (0) or Leave A Trackback.
Post Info
This entry was posted on Thursday, August 16th, 2007 and is filed under コンピュータ, 技術. Tagged with: .You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.
Previous Post: ジョコビッチ今週はいきなり負け »
Next Post: Mail-in-rebate »
Latest Posts:
