Lisa,<br><br>You should anyway specify the compiler version, it may not be related to this problem though:<br><br>nmake -f <a href="http://makefile.vc">makefile.vc</a> MSVC_VER=1500<br><br>In this case your compiler version doesn&#39;t seem to define the inline keyword.<br>
My nmake version reports 9.00.30729.01 which is able to compile the code without problems. You might have to upgrade with a Service Pack or replace &#39;inline&#39; with &#39;__inline&#39; inside the code.<br><br><br>For an easy way of the compilation you could also download an use the prepared build SDKs (ie: <a href="http://vbkto.dyndns.org/sdk/release-1500-dev.zip">http://vbkto.dyndns.org/sdk/release-1500-dev.zip</a>). Extract this into an arbitrary location and type &#39;nmake ms&#39; in the root directory by using the VS 2008 Command Prompt.<br>
<br>Best regards,<br><br>Tamas<br> <br><br><br><br><div class="gmail_quote">2010/2/23 Lisa Gaudette <span dir="ltr">&lt;<a href="mailto:lgaudette@ehealthinformation.ca">lgaudette@ehealthinformation.ca</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I&#39;m running Visual Studio 2008 on XP and I&#39;ve more or less followed the<br>
instructions here: <a href="http://mapserver.org/installation/win32.html" target="_blank">http://mapserver.org/installation/win32.html</a><br>
<br>
A couple differences: I enabled &quot;Optional RGBA palette png output&quot;, some of<br>
the libraries have newer versions, etc.<br>
<br>
I&#39;m basically trying to get a basic version to use without a ton of<br>
dependencies - I&#39;ve got GD, Regex, and Proj, just like in the example. I<br>
downloaded the code via mapserver-5.6.1.tar.gz. On my first attempts it<br>
wasn&#39;t finding the gd.h files and such but I found that moving everything<br>
from subfolders into one main folder worked.<br>
<br>
The lines in Mapserver.h that are causing problems are:<br>
<br>
inline void msBufferInit(bufferObj *buffer);<br>
inline void msBufferResize(bufferObj *buffer, size_t target_size);<br>
MS_DLL_EXPORT  inline void msBufferFree(bufferObj *buffer);<br>
MS_DLL_EXPORT  inline void msBufferAppend(bufferObj *buffer, void *data,<br>
size_t length);<br>
<br>
And in MapBits.c, the errors come right after #include &quot;mapserver.h&quot;<br>
MS_CVSID(&quot;$Id: mapbits.c 8755 2009-03-10 13:35:19Z jlacroix $&quot;)<br>
<br>
Although I expect in the 2nd case it&#39;s the errors in mapserver.h causing the<br>
problem.<br>
<br>
I tried a search on the errors and came up with nothing. Any ideas?<br>
<br>
-------<br>
C:\Projects\MapServer&gt;nmake /f Makefile.vc<br>
<br>
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08<br>
Copyright (C) Microsoft Corporation.  All rights reserved.<br>
<br>
        cl /nologo /Ox /MD /W3  /EHsc -IC:\projects\gd<br>
-IC:\projects\proj-4.<br>
7.0/src -Ic:\projects\regex-0.12                   -I\include<br>
-DHAVE_STRING_<br>
H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT<br>
-DNEED_STRR<br>
STR -DNEED_STRCASESTR    -DUSE_PROJ -DUSE_PROJ_API_H   -DUSE_GD_PNG<br>
-DUSE_GD_JPE<br>
G -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR  -DGD_HAS_GETBITMAPFONT<br>
-DGD<br>
_HAS_FTEX_XSHOW   -DUSE_THREAD    -DIGNORE_MISSING_DATA<br>
-DUSE_GD_A<br>
NTIALIAS           -DUSE_AGG      -DWIN32 -D_WIN32 /c mapbits.c<br>
/Fomapbits.obj<br>
mapbits.c<br>
c:\projects\mapserver\mapserver.h(2601) : error C2054: expected &#39;(&#39; to<br>
follow &#39;i<br>
nline&#39;<br>
c:\projects\mapserver\mapserver.h(2601) : error C2085: &#39;msBufferInit&#39; : not<br>
in f<br>
ormal parameter list<br>
c:\projects\mapserver\mapserver.h(2602) : error C2061: syntax error :<br>
identifier<br>
 &#39;inline&#39;<br>
c:\projects\mapserver\mapserver.h(2603) : error C2370: &#39;inline&#39; :<br>
redefinition;<br>
different storage class<br>
        c:\projects\mapserver\mapserver.h(2601) : see declaration of<br>
&#39;inline&#39;<br>
c:\projects\mapserver\mapserver.h(2603) : error C2054: expected &#39;(&#39; to<br>
follow &#39;i<br>
nline&#39;<br>
c:\projects\mapserver\mapserver.h(2603) : error C2085: &#39;msBufferFree&#39; : not<br>
in f<br>
ormal parameter list<br>
c:\projects\mapserver\mapserver.h(2604) : error C2082: redefinition of<br>
formal pa<br>
rameter &#39;inline&#39;<br>
c:\projects\mapserver\mapserver.h(2604) : error C2143: syntax error :<br>
missing &#39;;<br>
&#39; before &#39;type&#39;<br>
c:\projects\mapserver\mapserver.h(2604) : error C2085: &#39;msBufferAppend&#39; :<br>
not in<br>
 formal parameter list<br>
mapbits.c(35) : error C2085: &#39;ms_cvsid&#39; : not in formal parameter list<br>
mapbits.c(35) : error C2143: syntax error : missing &#39;;&#39; before &#39;=&#39;<br>
mapbits.c(35) : error C2065: &#39;ms_cvsid&#39; : undeclared identifier<br>
mapbits.c(35) : warning C4047: &#39;:&#39; : &#39;char *&#39; differs in levels of<br>
indirection f<br>
rom &#39;int&#39;<br>
NMAKE : fatal error U1077: &#39;&quot;c:\Program Files\Microsoft Visual Studio<br>
9.0\VC\BIN<br>
\cl.EXE&quot;&#39; : return code &#39;0x2&#39;<br>
Stop.<br>
<br>
C:\Projects\MapServer&gt;<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Compiling-errors-Windows-tp4622200p4622200.html" target="_blank">http://n2.nabble.com/Compiling-errors-Windows-tp4622200p4622200.html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></blockquote></div><br>