[ODE] Tri-Collider and ODE 0.035 problem

Paul Hunkin PWHUNK at stpeters.school.nz
Sun May 4 03:13:02 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C31226.4E8E2FD5
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi, everyone :-).
=20
I've been using ODE 0.035 in my game project for a little while now, and
it's been working great, however, problems began today when I started to
implement the Tri-Collider to use with my height-map. I followed the
instructions from here: http://q12.org/cgi-bin/wiki.pl?TriangleCollider.
OpCode (v1.0) compiled without any difficulty, but when I tried to
compile the Tri-Collider (in a static lib), I got tons of warnings like
this:
=20
C:\games\Programming\Librarys\TriCollider\dcAABBCollider.h(18) : warning
C4251: 'Contacts' : class 'dArray<int>' needs to have dll-interface to
be used by clients of class 'dcAABBTreeCollider'
C:\games\Programming\Librarys\TriCollider\dcAABBCollider.cpp(205) :
warning C4273: 'dcAABBTreeCollider::dcAABBTreeCollider' : inconsistent
dll linkage.  dllexport assumed.
C:\games\Programming\Librarys\TriCollider\dcAABBCollider.cpp(209) :
warning C4273: 'dcAABBTreeCollider::~dcAABBTreeCollider' : inconsistent
dll linkage.  dllexport assumed.
=20
It compiled in the end, however ('0 error(s), 19 warning(s)') so I put
'dGeomID tri =3D dCreateTriList(space, 0, 0);' into my games InitODE(),
linked with OpCode and TriCollider libs and tried to build. It didn't
work :-(; I got errors like this:
=20
TriCollider.lib(dTriList.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: __thiscall
dcOBBTreeCollider::~dcOBBTreeCollider(void)"
(__imp_??1dcOBBTreeCollider@@QAE@XZ)
TriCollider.lib(dTriList.obj) : error LNK2001: unresolved external
symbol "int __cdecl dCollideBP(struct dxGeom const *,struct dxGeom const
*,int,struct dContactGeom *,int)"
(?dCollideBP@@YAHPBUdxGeom@@0HPAUdContactGeom@@H@Z)
TriCollider.lib(dTriList.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: void __thiscall
dcAABBTreeCollider::Collide(class Opcode::AABBNoLeafTree const *,class
Opcode::CollisionAABB const &)" (__imp_?Collide@dcAABBTre
eCollider@@QAEXPBVAABBNoLeafTree@Opcode@@ABVCollisionAABB@3@@Z)
TriCollider.lib(dTriList.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: void __thiscall
dcAABBTreeCollider::GenerateTC(class Opcode::AABBNoLeafTree const
*,class Opcode::CollisionAABB const &)" (__imp_?GenerateTC@dcA
ABBTreeCollider@@QAEXPBVAABBNoLeafTree@Opcode@@ABVCollisionAABB@3@@Z)
=20
I'm sure there's something really obvious that I'm missing, but I can't
seem to find it :-(.
=20
Any ideas?
=20
=20
-paul

------_=_NextPart_001_01C31226.4E8E2FD5
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C31289.DCA116B0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
  <o:TargetScreenSize>1024x768</o:TargetScreenSize>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:SpellingState>Clean</w:SpellingState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:36.0pt;
	mso-footer-margin:36.0pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:36.0pt'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi, everyone </span></font><font size=3D2 =
face=3DWingdings><span
style=3D'font-size:10.0pt;font-family:Wingdings;mso-ascii-font-family:Ari=
al;
mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;mso-char-type:symb=
ol;
mso-symbol-font-family:Wingdings'><span =
style=3D'mso-char-type:symbol;mso-symbol-font-family:
Wingdings'>J</span></span></font><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>.<o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;ve been using ODE 0.035 in my game project =
for a little
while now, and it&#8217;s been working great, however, problems began =
today
when I started to implement the Tri-Collider to use with my height-map. =
I
followed the instructions from here: <a
href=3D"http://q12.org/cgi-bin/wiki.pl?TriangleCollider">http://q12.org/c=
gi-bin/wiki.pl?TriangleCollider</a>.
<span class=3DSpellE>OpCode</span> (v1.0) compiled without any =
difficulty, but
when I tried to compile the Tri-Collider (in a static lib), I got tons =
of
warnings like this:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>C:\games\Programming\Librarys\TriCollider\dcAABBCollid=
er.h(18)
: warning C4251: 'Contacts' : class '<span =
class=3DSpellE>dArray</span>&lt;<span
class=3DSpellE>int</span>&gt;' needs to have <span =
class=3DSpellE>dll</span>-interface
to be used by clients of class '<span =
class=3DSpellE>dcAABBTreeCollider</span>'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>C:\games\Programming\Librarys\TriCollider\dcAABBCollid=
er.cpp(205)
: warning C4273: '<span =
class=3DSpellE>dcAABBTreeCollider::dcAABBTreeCollider</span>'
: inconsistent <span class=3DSpellE>dll</span> linkage.<span
style=3D'mso-spacerun:yes'>&nbsp; </span><span =
class=3DSpellE>dllexport</span>
assumed.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>C:\games\Programming\Librarys\TriCollider\dcAABBCollid=
er.cpp(209)
: warning C4273: '<span =
class=3DSpellE>dcAABBTreeCollider::~dcAABBTreeCollider</span>'
: inconsistent <span class=3DSpellE>dll</span> linkage.<span
style=3D'mso-spacerun:yes'>&nbsp; </span><span =
class=3DSpellE>dllexport</span>
assumed.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>It compiled in the end, however (&#8216;0 error(s), =
19
warning(s)&#8217;) so I put &#8216;<span class=3DSpellE>dGeomID</span> =
tri =3D <span
class=3DSpellE>dCreateTriList</span>(space, 0, 0);&#8217; into my games =
<span
class=3DSpellE>InitODE</span>(), linked with <span =
class=3DSpellE>OpCode</span> and
<span class=3DSpellE>TriCollider</span> <span class=3DSpellE>libs</span> =
and tried
to build. It didn&#8217;t work </span></font><font size=3D2 =
face=3DWingdings><span
style=3D'font-size:10.0pt;font-family:Wingdings;mso-ascii-font-family:Ari=
al;
mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;mso-char-type:symb=
ol;
mso-symbol-font-family:Wingdings'><span =
style=3D'mso-char-type:symbol;mso-symbol-font-family:
Wingdings'>L</span></span></font><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>; I got errors like =
this:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>TriCollider.lib</span></font=
></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>(<span
class=3DSpellE>dTriList.obj</span>) : error LNK2001: unresolved external =
symbol
&quot;__<span class=3DSpellE>declspec</span>(<span =
class=3DSpellE>dllimport</span>)
public: __<span class=3DSpellE>thiscall</span> <span =
class=3DSpellE>dcOBBTreeCollider::~dcOBBTreeCollider</span>(void)&quot;
(__imp_??1dcOBBTreeCollider@@QAE@XZ)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>TriCollider.lib</span></font=
></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>(<span
class=3DSpellE>dTriList.obj</span>) : error LNK2001: unresolved external =
symbol
&quot;<span class=3DSpellE>int</span> __<span =
class=3DSpellE>cdecl</span> <span
class=3DSpellE>dCollideBP</span>(<span class=3DSpellE>struct</span> =
<span
class=3DSpellE>dxGeom</span> const *,<span class=3DSpellE>struct</span> =
<span
class=3DSpellE>dxGeom</span> const *,<span =
class=3DSpellE>int,struct</span> <span
class=3DSpellE>dContactGeom</span> *,<span =
class=3DSpellE>int</span>)&quot; =
(?dCollideBP@@YAHPBUdxGeom@@0HPAUdContactGeom@@H@Z)<o:p></o:p></span></fo=
nt></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>TriCollider.lib</span></font=
></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>(<span
class=3DSpellE>dTriList.obj</span>) : error LNK2001: unresolved external =
symbol
&quot;__<span class=3DSpellE>declspec</span>(<span =
class=3DSpellE>dllimport</span>)
public: void __<span class=3DSpellE>thiscall</span> <span =
class=3DSpellE>dcAABBTreeCollider::Collide</span>(class
<span class=3DSpellE>Opcode::AABBNoLeafTree</span> const *,class <span
class=3DSpellE>Opcode::CollisionAABB</span> const &amp;)&quot; (__<span
class=3DSpellE>imp_?Collide@dcAABBTre</span><o:p></o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>eCollider@@QAEXPBVAABBNoLeafTree@Opcode@@ABVCollisionA=
ABB@3@@Z)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>TriCollider.lib</span></font=
></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>(<span
class=3DSpellE>dTriList.obj</span>) : error LNK2001: unresolved external =
symbol
&quot;__<span class=3DSpellE>declspec</span>(<span =
class=3DSpellE>dllimport</span>)
public: void __<span class=3DSpellE>thiscall</span> <span =
class=3DSpellE>dcAABBTreeCollider::GenerateTC</span>(class
<span class=3DSpellE>Opcode::AABBNoLeafTree</span> const *,class <span
class=3DSpellE>Opcode::CollisionAABB</span> const &amp;)&quot; (__<span
class=3DSpellE>imp_?GenerateTC@dcA</span><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>ABBTreeCollider@@QAEXPBVAABBNoLeafTree@Opcode@@ABVColl=
isionAABB@3@@Z)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;m sure there&#8217;s something really obvious =
that I&#8217;m
missing, but I can&#8217;t seem to find it </span></font><font size=3D2
face=3DWingdings><span =
style=3D'font-size:10.0pt;font-family:Wingdings;mso-ascii-font-family:
Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;mso-char-typ=
e:
symbol;mso-symbol-font-family:Wingdings'><span =
style=3D'mso-char-type:symbol;
mso-symbol-font-family:Wingdings'>L</span></span></font><font size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>.<o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Any ideas?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>-<span =
class=3DSpellE>paul</span><o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C31226.4E8E2FD5--