[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-video-dev
Subject:    RE: [Helix-client-dev] RE: [Video-dev] InterlockedIncrement and MS
From:       "Josh Taylor" <jjtaylor () andrew ! cmu ! edu>
Date:       2004-04-01 21:39:10
Message-ID: 003801c41831$c499e2a0$7cef0280 () andrew ! ad ! cmu ! edu
[Download RAW message or body]

This was suggested to me when I posted on STLport.org's forums (where Liam
originally found my problem) several nights ago, and I tried that first to
resolve my issues but it didn't help at all.

 

-- Josh

 

-----Original Message-----
From: Henry Ping [mailto:ping@real.com] 
Sent: Thursday, April 01, 2004 4:10 PM
To: Josh Taylor; 'Liam Murray'; 'Greg Wright';
video-dev@lists.helixcommunity.org; 'Rishi Mathew'
Cc: helix-client-dev@lists.helixcommunity.org
Subject: RE: [Helix-client-dev] RE: [Video-dev] InterlockedIncrement and MS
platform sdk (was CR:New Platform WinCE 4.20 on x86)

 

After some googling, it turns out the Interlockedxxx issue can be fixed by
uncommenting out the following line in stl_user_config.h:
#define _STLP_NEW_PLATFORM_SDK 1

Here is the thread from microsoft.public.vc.stl
http://groups.google.com/groups?hl=en
<http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=
60d3dfe71a667426&seekm=uW3yTJh5BHA.2200%40tkmsftngp07#link1>
&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=60d3dfe71a667426&seekm=uW3yTJh5BHA.220
0%40tkmsftngp07#link1

-->Henry

At 02:39 PM 4/1/2004 -0500, Josh Taylor wrote:




I did try to comment out the STLport inclusions in the win32-i386-vc7.cf,
but I received a ton of linking errors regarding stl whenever ribosome was
trying to compile the clntcore. I can comment those out, build again, and
post those errors to the lists if it would be beneficial for the community.
As it stands now, I m able to build with vc7 now.

 

Josh

 

-----Original Message-----
From: Liam Murray [mailto:liamm@real.com] 
Sent: Thursday, April 01, 2004 2:22 PM
To: Henry Ping; Josh Taylor; 'Greg Wright';
video-dev@lists.helixcommunity.org; 'Rishi Mathew'
Cc: helix-client-dev@lists.helixcommunity.org
Subject: Re: [Helix-client-dev] RE: [Video-dev] InterlockedIncrement and MS
platform sdk (was CR:New Platform WinCE 4.20 on x86)

 

My understanding is that VC7 has a very good implementation of STL (compared
to vc6), so I'm not sure we need stlport for VC7, unless we use stlport on
windows for reasons other than performance/stability/reliability.

For vc7 perhaps a workable solution is to just comment out the stlport
inclusion in the .cf file.

Liam

At 11:02 AM 4/1/2004, Henry Ping wrote:

Hi, Josh

I am not too surprised to know the compliance issues between STLport and
VC7, after all Microsoft implements its own STL support. We haven't put much
man power into VC7 support in Helix, but I hope we'll transition to .NET
framework in the near future since it's becoming the dominate development
platform on Windows.

-->Henry 
 
At 02:39 AM 4/1/2004 -0500, Josh Taylor wrote:


I m having similar STLport/PSDK issues when I try to build the release
version of Helix with win32-i386-vc7.cf for windows. I am able to build fine
with vc6, however, I m trying to integrate Panda3D and Helix together. As of
now, Panda is built with vc7 so it would be best for me to build both
platforms with the same compiler. I downloaded the latest STLport (4.6.1),
compiled it under vc7, installed the libraries and DLLs, and updated the
headers in the common\import\stlport directory.

 

I saw Liam s reply to my question in the STLport.org forums, and I added the
project.addDefines( NOWINBASEINTERLOCK ) however that alone did not solve my
problem. In _threads.h from STLport, I was receiving

errors on these lines of code:

 

Errors:

..\..\common\import\stlport\stl\_windows.h(49) : error C2059: syntax error :
')'
..\..\common\import\stlport\stl\_windows.h(50) : error C2059: syntax error :
')'

 

Code:

_STLP_IMPORT_DECLSPEC long _STLP_STDCALL InterlockedIncrement(long volatile
*);

_STLP_IMPORT_DECLSPEC long _STLP_STDCALL InterlockedDecrement(long volatile
*);

 

For some reason, InterlockedIncrement is not being defined properly, ie.
#define InterlockedIncrement _Interlocked Increment. I then added those
defines

Before the code above and that resolved the issue and I was able to
successfully build. However, I m not overly comfortable with this solution
(it is a hack). If anyone knows why InterlockedIncrement and
InterlockedDecrement are not being defined properly, I could use the help.

 

Josh

 

-----Original Message-----
From: video-dev-bounces@lists.helixcommunity.org
[mailto:video-dev-bounces@lists.helixcommunity.org] On Behalf Of Liam Murray
Sent: Wednesday, March 31, 2004 6:17 PM
To: Greg Wright; video-dev@lists.helixcommunity.org; Rishi Mathew
Cc: helix-client-dev@lists.helixcommunity.org
Subject: [Video-dev] InterlockedIncrement and MS platform sdk (was CR:New
Platform WinCE 4.20 on x86)

 

I'm getting the same errors after installing the latest MS Platform SDK.

The error occurs when winbase.h is included from the platform SDK include
directory.



winbase.h(1298):
error

 

C2733: second C linkage
of

 

overloaded


 

function

 

'InterlockedIncrement'
not

 

allowed


 

 



This arises from a conflict with function declarations in
common\import\stlport\stl\_threads.h, which is picked up via stlport\memory,
which is included in hxtypes.h.

The win32-i386-vc6.cf file adds stlport to the include line for every module
everywhere for win32-i386-vc6 builds.

## additional includes
project.AddModuleIncludes("stlport")
project.AddModuleIncludes("common/import/stlport")

If I comment these out I can build. I can also add
platform.AddDefines("NOWINBASEINTERLOCK") or something like that to prevent
the declarations in winbase.h. Neither of these seem like good  solutions.
Perhaps a better solution might be to modify _threads.h so it's declarations
conform with those in winbase.h  when the platform sdk is installed.

Actually, I'm surprised that this is failing because it looks like someone
has already successfully built with the platform sdk for purposes of
including some of the advanced networking stuff. (I just installed the
platform sdk a couple of days ago.)


Liam


At 02:39 PM 3/31/2004, Greg Wright wrote:

> Greg,
> 
> The print.h is located in the common\print directory. I believe he has 
> created this sub-dir
> In the BIF file, a seperate common_print module is also specified..
> Attaching the print.h and print.cpp file in the zip.
> 
> I have tested these changes and there are no build errors in the video 
> module...

I am not so worried about building but more concerned about functional
testing. Like with some SMIL that does alphablending; given the changes.

Henry might be able to help with that MS SDK thing.

--greg.


> 
> However I am not getting a clean build because of one error in the 
> client\common\netio module. Probably because of the Microsoft Platform
SDK. 
> Any opinions on this one...
> 
> 
> D:\feb0204\client\common\netio>nmake
> 
> Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> 
>          cl /nologo /Zp1 /Zm200 /W3 /GX- /Od  /I. /I.\win /I.\pub 
> /I.\pub\win /I.
> .\..\..\common\runtime\pub /I..\..\..\stlport 
> /I..\..\..\common\import\stlport "
> /ID:\Microsoft SDK\include" /I..\..\..\common\include 
> /I..\..\..\common\netio\pu
> b /I..\..\..\common\container\pub /I..\..\..\common\util\pub 
> /I..\..\..\common\f
> ileio\pub /I..\..\..\common\dbgtool\pub /I..\..\..\common\system\pub /I. 
> /FIdbg3
> 2\client_common_netio_ribodefs.h  /MDd /Z7 
> /Fodbg32\obj\platform\win\hxnetif.obj
>   /c  platform\win\hxnetif.cpp
> hxnetif.cpp
> D:\Microsoft SDK\include\winbase.h(1392) : error C2733: second C linkage
of 
> over
> loaded function 'InterlockedIncrement' not allowed
>          D:\Microsoft SDK\include\winbase.h(1390) : see declaration of 
> 'Interlock
> edIncrement'
> D:\Microsoft SDK\include\winbase.h(1399) : error C2733: second C linkage
of 
> over
> loaded function 'InterlockedDecrement' not allowed
>          D:\Microsoft SDK\include\winbase.h(1397) : see declaration of 
> 'Interlock
> edDecrement'
> D:\Microsoft SDK\include\winbase.h(1407) : error C2733: second C linkage
of 
> over
> loaded function 'InterlockedExchange' not allowed
>          D:\Microsoft SDK\include\winbase.h(1404) : see declaration of 
> 'Interlock
> edExchange'
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
> 
> D:\feb0204\client\common\netio>
> 
> 
> -Rishi.


_______________________________________________
Video-dev mailing list
Video-dev@lists.helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/video-dev
_______________________________________________
Helix-client-dev mailing list
Helix-client-dev@lists.helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev

_______________________________________________
Video-dev mailing list
Video-dev@lists.helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/video-dev


[Attachment #3 (text/html)]

<html>

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


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle18
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This was suggested to me when I posted on \
STLport.org&#8217;s forums (where Liam originally found my problem) several nights \
ago, and I tried that first to resolve my issues but it didn&#8217;t help at \
all.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-- Josh</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Henry Ping
[mailto:ping@real.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, April 01, 2004
4:10 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Josh Taylor; 'Liam Murray';
'Greg Wright'; video-dev@lists.helixcommunity.org; 'Rishi Mathew'<br>
<b><span style='font-weight:bold'>Cc:</span></b>
helix-client-dev@lists.helixcommunity.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [Helix-client-dev]
RE: [Video-dev] InterlockedIncrement and MS platform sdk (was CR:New Platform
WinCE 4.20 on x86)</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>After some googling, it turns out the </span></font><font
size=2><span style='font-size:10.0pt'>Interlockedxxx issue can be fixed by
uncommenting out the following line in stl_user_config.h:<br>
#define _STLP_NEW_PLATFORM_SDK 1<br>
<br>
Here is the thread from microsoft.public.vc.stl<br>
<a
href="http://groups.google.com/groups?hl=en&amp;lr=&amp;ie=UTF-8&amp;oe=UTF-8&amp;frame=right&amp;th=60d3dfe71a667426&amp;seekm=uW3yTJh5BHA.2200%40tkmsftngp07#link1"
 eudora=autourl>http://groups.google.com/groups?hl=en&amp;lr=&amp;ie=UTF-8&amp;oe=UTF- \
8&amp;frame=right&amp;th=60d3dfe71a667426&amp;seekm=uW3yTJh5BHA.2200%40tkmsftngp07#link1</a><br>
 <br>
--&gt;Henry<br>
<br>
</span></font>At 02:39 PM 4/1/2004 -0500, Josh Taylor wrote:<br>
<br>
<br>
</p>

<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>I did try to comment out the STLport inclusions
in the win32-i386-vc7.cf, but I received a ton of linking errors regarding stl
whenever ribosome was trying to compile the clntcore. I can comment those out,
build again, and post those errors to the lists if it would be beneficial for
the community. As it stands now, I m able to build with vc7 now.<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Josh<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;<br>
</span></font><br>
<font size=2 face=Tahoma><span \
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Liam Murray [<a
href="mailto:liamm@real.com" eudora=autourl>mailto:liamm@real.com</a>] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, April 01, 2004
2:22 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Henry Ping; Josh Taylor; 'Greg
Wright'; video-dev@lists.helixcommunity.org; 'Rishi Mathew'<br>
<b><span style='font-weight:bold'>Cc:</span></b> \
helix-client-dev@lists.helixcommunity.org<br> <b><span \
                style='font-weight:bold'>Subject:</span></b> Re: [Helix-client-dev]
RE: [Video-dev] InterlockedIncrement and MS platform sdk (was CR:New Platform
WinCE 4.20 on x86)<br>
</span></font><br>
&nbsp;<br>
<br>
My understanding is that VC7 has a very good implementation of STL (compared to
vc6), so I'm not sure we need stlport for VC7, unless we use stlport on windows
for reasons other than performance/stability/reliability.<br>
<br>
For vc7 perhaps a workable solution is to just comment out the stlport
inclusion in the .cf file.<br>
<br>
Liam<br>
<br>
At 11:02 AM 4/1/2004, Henry Ping wrote:<br>
<br>
Hi, Josh<br>
<br>
I am not too surprised to know the compliance issues between STLport and VC7,
after all Microsoft implements its own STL support. We haven't put much man
power into VC7 support in Helix, but I hope we'll transition to .NET framework
in the near future since it's becoming the dominate development platform on
Windows.<br>
<br>
--&gt;Henry <br>
&nbsp;<br>
At 02:39 AM 4/1/2004 -0500, Josh Taylor wrote:<br>
<br>
<br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>I m having similar STLport/PSDK issues when I try to build
the release version of Helix with win32-i386-vc7.cf for windows. I am able to
build fine with vc6, however, I m trying to integrate Panda3D and Helix
together. As of now, Panda is built with vc7 so it would be best for me to
build both platforms with the same compiler. I downloaded the latest STLport
(4.6.1), compiled it under vc7, installed the libraries and DLLs, and updated
the headers in the common\import\stlport directory.<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>I saw Liam s reply to my question in the STLport.org forums,
and I added the project.addDefines( NOWINBASEINTERLOCK ) however that alone did
not solve my problem. In _threads.h from STLport, I was receiving<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>errors on these lines of code:<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Errors:<br>
</span></font><br>
<font size=2 color="#325a30" face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;color:#325A30'>..\..\common\import\stlport\stl\_windows.h(49)
> error C2059: syntax error : ')'<br>
..\..\common\import\stlport\stl\_windows.h(50) : error C2059: syntax error :
')'<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Code:<br>
</span></font><br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier \
New"'>_STLP_IMPORT_DECLSPEC <font color=blue><span \
style='color:blue'>long</span></font> _STLP_STDCALL InterlockedIncrement(<font \
color=blue><span style='color:blue'>long</span></font> <font color=blue><span \
style='color:blue'>volatile</span></font> *);<br> </span></font><br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier \
New"'>_STLP_IMPORT_DECLSPEC <font color=blue><span \
style='color:blue'>long</span></font> _STLP_STDCALL InterlockedDecrement(<font \
color=blue><span style='color:blue'>long</span></font> <font color=blue><span \
style='color:blue'>volatile</span></font> *);<br> </span></font><br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier \
New"'>&nbsp;<br> </span></font><br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier \
New"'>For some reason, InterlockedIncrement is not being defined properly, ie. \
#define InterlockedIncrement _Interlocked Increment. I then added those defines<br>
</span></font><br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier \
New"'>Before the code above and that resolved the issue and I was able to \
successfully build. However, I m not overly comfortable with this solution (it is a \
hack). If anyone knows why InterlockedIncrement and InterlockedDecrement are not \
being defined properly, I could use the help.<br>
</span></font><br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier \
New"'>&nbsp;<br> </span></font><br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier \
New"'>Josh<br> </span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;<br>
</span></font><br>
<font size=2 face=Tahoma><span \
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
video-dev-bounces@lists.helixcommunity.org [<a
href="mailto:video-dev-bounces@lists.helixcommunity.org" \
eudora=autourl>mailto:video-dev-bounces@lists.helixcommunity.org</a>] <b><span \
style='font-weight:bold'>On Behalf Of </span></b>Liam Murray<br> <b><span \
style='font-weight:bold'>Sent:</span></b> Wednesday, March 31, 2004 6:17 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Greg Wright;
video-dev@lists.helixcommunity.org; Rishi Mathew<br>
<b><span style='font-weight:bold'>Cc:</span></b> \
helix-client-dev@lists.helixcommunity.org<br> <b><span \
style='font-weight:bold'>Subject:</span></b> [Video-dev] InterlockedIncrement and MS \
platform sdk (was CR:New Platform WinCE 4.20 on x86)<br>
</span></font><br>
&nbsp;<br>
<br>
I'm getting the same errors after installing the latest MS Platform SDK.<br>
<br>
The error occurs when winbase.h is included from the platform SDK include
directory.<br>
<br>
</p>

<pre style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>winbase.h(1298):</span></font></pre><pre
style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>error</span></font></pre>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<pre style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>C2733: second C linkage</span></font></pre><pre
style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>of</span></font></pre>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<pre style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>overloaded</span></font></pre>

<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
&nbsp;</span></font></p>

<pre style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>function</span></font></pre>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<pre style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>'InterlockedIncrement'</span></font></pre><pre
style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>not</span></font></pre>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<pre style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>allowed</span></font></pre>

<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
&nbsp;</span></font></p>

<pre style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>&nbsp;</span></font></pre>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br>
This arises from a conflict with function declarations in \
common\import\stlport\stl\_threads.h, which is picked up via stlport\memory, which is \
included in hxtypes.h.<br> <br>
The win32-i386-vc6.cf file adds stlport to the include line for every module
everywhere for win32-i386-vc6 builds.<br>
<br>
## additional includes<br>
project.AddModuleIncludes(&quot;stlport&quot;)<br>
project.AddModuleIncludes(&quot;common/import/stlport&quot;)<br>
<br>
If I comment these out I can build. I can also add
platform.AddDefines(&quot;NOWINBASEINTERLOCK&quot;) or something like that to
prevent the declarations in winbase.h. Neither of these seem like good&nbsp; \
solutions. Perhaps a better solution might be to modify _threads.h so it's \
declarations conform with those in winbase.h&nbsp; when the platform sdk is \
installed.<br> <br>
Actually, I'm surprised that this is failing because it looks like someone has
already successfully built with the platform sdk for purposes of including some
of the advanced networking stuff. (I just installed the platform sdk a couple
of days ago.)<br>
<br>
<br>
Liam<br>
<br>
<br>
At 02:39 PM 3/31/2004, Greg Wright wrote:<br>
<br>
&gt; Greg,<br>
&gt; <br>
&gt; The print.h is located in the common\print directory. I believe he has <br>
&gt; created this sub-dir<br>
&gt; In the BIF file, a seperate common_print module is also specified..<br>
&gt; Attaching the print.h and print.cpp file in the zip.<br>
&gt; <br>
&gt; I have tested these changes and there are no build errors in the video <br>
&gt; module...<br>
<br>
I am not so worried about building but more concerned about functional<br>
testing. Like with some SMIL that does alphablending; given the changes.<br>
<br>
Henry might be able to help with that MS SDK thing.<br>
<br>
--greg.<br>
<br>
<br>
&gt; <br>
&gt; However I am not getting a clean build because of one error in the <br>
&gt; client\common\netio module. Probably because of the Microsoft Platform
SDK. <br>
&gt; Any opinions on this one...<br>
&gt; <br>
&gt; <br>
&gt; D:\feb0204\client\common\netio&gt;nmake<br>
&gt; <br>
&gt; Microsoft (R) Program Maintenance Utility&nbsp;&nbsp; Version 6.00.8168.0<br>
&gt; Copyright (C) Microsoft Corp 1988-1998. All rights reserved.<br>
&gt; <br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cl /nologo /Zp1
/Zm200 /W3 /GX- /Od&nbsp; /I. /I.\win /I.\pub <br>
&gt; /I.\pub\win /I.<br>
&gt; .\..\..\common\runtime\pub /I..\..\..\stlport <br>
&gt; /I..\..\..\common\import\stlport &quot;<br>
&gt; /ID:\Microsoft SDK\include&quot; /I..\..\..\common\include <br>
&gt; /I..\..\..\common\netio\pu<br>
&gt; b /I..\..\..\common\container\pub /I..\..\..\common\util\pub <br>
&gt; /I..\..\..\common\f<br>
&gt; ileio\pub /I..\..\..\common\dbgtool\pub /I..\..\..\common\system\pub /I. <br>
&gt; /FIdbg3<br>
&gt; 2\client_common_netio_ribodefs.h&nbsp; /MDd /Z7 <br>
&gt; /Fodbg32\obj\platform\win\hxnetif.obj<br>
&gt;&nbsp;&nbsp; /c&nbsp; platform\win\hxnetif.cpp<br>
&gt; hxnetif.cpp<br>
&gt; D:\Microsoft SDK\include\winbase.h(1392) : error C2733: second C linkage
of <br>
&gt; over<br>
&gt; loaded function 'InterlockedIncrement' not allowed<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D:\Microsoft
SDK\include\winbase.h(1390) : see declaration of <br>
&gt; 'Interlock<br>
&gt; edIncrement'<br>
&gt; D:\Microsoft SDK\include\winbase.h(1399) : error C2733: second C linkage
of <br>
&gt; over<br>
&gt; loaded function 'InterlockedDecrement' not allowed<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D:\Microsoft
SDK\include\winbase.h(1397) : see declaration of <br>
&gt; 'Interlock<br>
&gt; edDecrement'<br>
&gt; D:\Microsoft SDK\include\winbase.h(1407) : error C2733: second C linkage
of <br>
&gt; over<br>
&gt; loaded function 'InterlockedExchange' not allowed<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D:\Microsoft
SDK\include\winbase.h(1404) : see declaration of <br>
&gt; 'Interlock<br>
&gt; edExchange'<br>
&gt; NMAKE : fatal error U1077: 'cl' : return code '0x2'<br>
&gt; Stop.<br>
&gt; <br>
&gt; D:\feb0204\client\common\netio&gt;<br>
&gt; <br>
&gt; <br>
&gt; -Rishi.<br>
<br>
<br>
_______________________________________________<br>
Video-dev mailing list<br>
Video-dev@lists.helixcommunity.org<br>
<a href="http://lists.helixcommunity.org/mailman/listinfo/video-dev"
eudora=autourl>http://lists.helixcommunity.org/mailman/listinfo/video-dev</a><br>
_______________________________________________<br>
Helix-client-dev mailing list<br>
Helix-client-dev@lists.helixcommunity.org<br>
<a href="http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev"
eudora=autourl>http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev</a><br>
 <br>
_______________________________________________<br>
Video-dev mailing list<br>
Video-dev@lists.helixcommunity.org<br>
<a href="http://lists.helixcommunity.org/mailman/listinfo/video-dev"
eudora=autourl>http://lists.helixcommunity.org/mailman/listinfo/video-dev</a></span></font></p>


</div>

</body>

</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic