------=_Part_135500_8324013.1171442194746
Content-Type: multipart/alternative;
boundary="----=_Part_135501_13266113.1171442194746"
------=_Part_135501_13266113.1171442194746
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
actually i get 34 linking errors like these, the program compiles fine and
the problem is in the linking.
testplus.obj : error LNK2005: "public: __thiscall
ARToolKitPlus::CameraImpl::CameraImpl(void)" (??0CameraImpl@A ............@@
QAE@X .) already defined in item.obj
testplus.obj : error LNK2005: "public: __thiscall
ARToolKitPlus::BCH::BCH(void)" (??0BCH@A ............@@Q ..@X .) already
defined in item.obj
It looks like the project's own object files are interfering with the
linking. I'm only using 3 files, item.h, item.cpp and main.cpp. I only
included the Impl header in item.h.
I have a skeleton program with this error that doesn't do anything, what I
suspect is the project properties that's causing the problem, though I do
not know why its like that because it works fine if I only have one
main.cppinstead of including headers.
Has anyone included the marker implementation headers in a separate file
before? If so, can I have the project properties?
Thanks.
Regards,
Mingwei
On 2/13/07, Daniel Wagner <daniel@i ...............> wrote:
>
> hi Mingwei,
>
> you should not include the *Impl files more than once in a program since
> they include the implementation.
> Instead you should include the non-Impl files which define the
> underlying API (in form of abstract classes).
>
> Daniel
>
>
------=_Part_135501_13266113.1171442194746
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,<br><br>actually i get 34 linking errors like these, the program compiles fine and the problem is in the linking.<br><br>testplus.obj : error LNK2005: "public: __thiscall ARToolKitPlus::CameraImpl::CameraImpl(void)" (??0CameraImpl@A ............@@
QAE@X .) already defined in item.obj<br>testplus.obj : error LNK2005: "public: __thiscall ARToolKitPlus::BCH::BCH(void)" (??0BCH@A ............@@Q ..@X .) already defined in item.obj<br><br>It looks like the project's own object files are interfering with the linking. I'm only using 3 files,
item.h, item.cpp and main.cpp. I only included the Impl header in item.h.<br><br>I have a skeleton program with this error that doesn't do anything, what I suspect is
the project properties that's causing the problem, though I do not know
why its like that because it works fine if I only have one main.cpp
instead of including headers.<br>
<br>Has anyone included the marker implementation headers in a separate file before? If so, can I have the project properties?<br><br>Thanks.<br><br>Regards,<br>Mingwei<br><br><br><br><br><br><div><span class="gmail_quote">
On 2/13/07, <b class="gmail_sendername">Daniel Wagner</b> <<a href="mailto:daniel@i ...............">daniel@i ...............</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi Mingwei,<br><br>you should not include the *Impl files more than once in a program since<br>they include the implementation.<br>Instead you should include the non-Impl files which define the<br>underlying API (in form of abstract classes).
<br><br>Daniel<br><br></blockquote></div><br>
------=_Part_135501_13266113.1171442194746--
------=_Part_135500_8324013.1171442194746
Content-Type: application/zip; name=testplus.zip
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ey5i4zdu
Content-Disposition: attachment; filename="testplus.zip"
UEsDBAoAAAAAAI2DTjYSeN+ALQAAAC0AAAAMAAAAdGVzdHBsdXMuY3BwI2luY2x1ZGUgIml0ZW0u
aCIKCmludCBtYWluKCl7CgoJcmV0dXJuIDA7Cn0KUEsDBBQAAAAIAGeDTjaqZFfaPQUAACEQAAAP
AAAAdGVzdHBsdXMudmNwcm9q7RfZbttG8NkB8g8G4QcHAXVQp0urAanDFSIfkOy4DwKMJTmi1iG5
7HIpS0nz750ll9YRK3Ja9KkFLGNmdmbnnlmef1iGwfECeEJZ1NGqpYp2DJHLPBr5He2eRh57SvSq
0TC0D7++fXP+iSYpCSYi9Si74ewRXPH2zZGCblcxdLSc5bj7/r2GR5+Kq1ulakUSrkiITAISEQdp
oq2lL+6GvY72tW/Xa0bfqul202rq9Va3odsNq6Ub9bOGUbPqlm23v0mxMWNCXpbExN258SOsnhj3
OtoliYgPXleq0ND+o/ObgIgZ42EisTUqEWUaOl0ztHLGXd5iP++yaEb9lBOBLqkbtmgb1/TASf0/
88sy8nUq4lT0KEdfGV91tNI048lPh5EAHoJHiYDveaabx7nAlt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