nvccのバグ

カレントディレクトリにnewってファイル作ってるとコンパイルエラーが出るってどういうこと・・・.

In file included from /usr/include/c++/4.6/ext/newallocator.h:34:0,
from /usr/include/c++/4.6/i686-linux-gnu/./bits/c++allocator.h:34,
from /usr/include/c++/4.6/bits/allocator.h:48,
from /usr/include/c++/4.6/vector:62,
from lib/BmpLoader.cpp:4:
./new:1:2: エラー: expected unqualified-id before numeric constant
./new:1:2: エラー: expected ‘)’ before numeric constant
In file included from /usr/include/c++/4.6/bits/ostream
insert.h:36:0,
from /usr/include/c++/4.6/string:46,
from lib/BmpLoader.h:7,
from lib/BmpLoader.cpp:8:
/usr/include/c++/4.6/bits/cxxabi_forced.h:36:37: エラー: expected declaration before end of line

gccで同じコードをコンパイルするとエラーは出ないので,nvcc固有の問題.
インクルードパスの解決に失敗してるのかなぁ.

バージョンは以下のとおり.

yasuharu@hamada-lab:/usr/include/c++/4.6/bits$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2010 NVIDIA Corporation
Built on WedNov316:14:08PDT2010
Cuda compilation tools, release 3.2, V0.2.1221

これで2時間は潰した気がするよー orz

Posted at : 2012-03-27 15:51:49 / Category : none

Comments

まだコメントはありません / No comment.

Send comment


Name


Mail-address (empty is OK. If you want to notify update, please fill mail-address.)


Bot check code (240329 と入力してください / Please input 240329.)