Ticket #21487

シンボル多重定義エラー (リンク時)

Open Date: 2010-04-20 17:47 Last Update: 2010-04-22 01:59

Reporter:
Owner:
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
3
Severity:
3
Resolution:
Fixed
File:
None

Details

複数のオブジェクトファイル単位に渡り、別々にdouble_array.hなどをインクルードすると、リンク処理時にいくつかの(定数に展開できないような)シンボルが多重定義されているという旨のエラーが出力される(gcc 4.2.4)。

Ticket History (2/2 Histories)

2010-04-20 17:47 Updated by: phjgt
  • New Ticket "シンボル多重定義エラー (リンク時)" created
2010-04-22 01:59 Updated by: phjgt
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2010-04-22 01:59
Comment

r76で修正

【対策】
1) const char* を #define に変更 (MAGIC_STRING)
2) 多重定義となっていた変数定義の場所を移動 (static Node::INVALID => SearcherBase::INVALID)

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login