<div>Hi fleuren, thanks for all your help. I am able to solve the problem now, the lib or&nbsp;include paths&nbsp;are not the problem as they were already set in the environment variables on my machine. What i did was since i got an error with "shgetfolderpath" i saw that this function was being called in "fe-connect.c" but the relavant .h file was not included in this c file which is beyond my imagination. So i included the "shfolder.h" file which was in the MS platform sdk include folder and recompiled and it worked perfectly with no errors.</div>  <div>&nbsp;</div>  <div>I really appreciate your help and thanks ...</div>  <div>&nbsp;</div>  <div>Thanks for all you guys who helped me with this problem ....</div>  <div>&nbsp;</div>  <div>kris<BR><BR><B><I>Huub Fleuren &lt;hfl@home.nl&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Kris.<BR><BR><BR>Well, in my situation it still goes oke. we
 need : latest postgres <BR>Windows source, latest platform SDK, visualC servicepack 4.<BR>try a reinstall of vc and sdk<BR><BR>here's what happens on my machine<BR><BR>E:\projects\postgresql-8.1.3\src&gt;cl<BR>'cl' is not recognized as an internal or external command, operable <BR>program or batch file.<BR><BR>E:\projects\postgresql-8.1.3\src&gt;set include<BR>Environment variable include not defined<BR><BR>E:\projects\postgresql-8.1.3\src&gt;set lib<BR>Environment variable lib not defined<BR><BR>so begin.<BR><BR>E:\projects\postgresql-8.1.3\src&gt;vcvars32<BR><BR>E:\projects\postgresql-8.1.3\src&gt;path<BR>PATH=f:\PROGRA~1\MICROS~2\Common\msdev98\BIN;<BR>F:\PROGRA~1\MICROS~2\VC98\BIN;<BR>f:\PROGRA~1\MICROS~2\Common\TOOLS\WINNT;<BR>f:\PROGRA~1\MICROS~2\Common\TOOLS;<BR>C:\WINNT\system32;<BR>C:\WINNT;C:\WINNT\System32\Wbem;<BR>d:\myutilsandcopiedbatchfiles;<BR><BR>E:\projects\postgresql-8.1.3\src&gt;set
 lib<BR>LIB=F:\PROGRA~1\MICROS~2\VC98\LIB;F:\PROGRA~1\MICROS~2\VC98\MFC\LIB;<BR><BR>E:\projects\postgresql-8.1.3\src&gt;set include<BR>INCLUDE=F:\PROGRA~1\MICROS~2\VC98\ATL\INCLUDE;F:\PROGRA~1\MICROS~2\VC98\INCLUDE;F:\PROGRA~1\MICROS~2<BR>\VC98\MFC\INCLUDE;<BR><BR>E:\projects\postgresql-8.1.3\src&gt;setenv<BR><BR>Attempting to detect a Microsoft Visual Studio installation<BR><BR><BR>Targeting Windows XP 32 DEBUG<BR><BR><BR>E:\projects\postgresql-8.1.3\src&gt;set lib<BR>LIB=F:\Program Files\Microsoft Platform SDK for Windows Server 2003 <BR>R2\Lib;F:\PR<BR>OGRA~1\MICROS~2\VC98\LIB;F:\PROGRA~1\MICROS~2\VC98\MFC\LIB;<BR><BR>E:\projects\postgresql-8.1.3\src&gt;set include<BR>INCLUDE=F:\Program Files\Microsoft Platform SDK for Windows Server 2003 <BR>R2\Inclu<BR>de;F:\PROGRA~1\MICROS~2\VC98\ATL\INCLUDE;F:\PROGRA~1\MICROS~2\VC98\INCLUDE;F:\PR<BR>OGRA~1\MICROS~2\VC98\MFC\INCLUDE;<BR><BR>E:\projects\postgresql-8.1.3\src&gt;nmake /f win32.mak<BR>rattle... rattle<BR>(...)<BR>All
 Win32 parts have been built!<BR><BR><BR>it's not that we're supposed to understand why or how...<BR><BR>Regards, Huub.<BR><BR><BR>rock well schreef:<BR>&gt; yes i did install the platform sdk and there is also an shfolder.lib <BR>&gt; file in the sdk folder, though it gives me an error .....<BR>&gt; <BR>&gt; Thanks for your reply .....<BR>&gt;<BR>&gt; */"Bart van den Eijnden (OSGIS)" <BARTVDE@XS4ALL.NL>/* wrote:<BR>&gt;<BR>&gt; Did you install the Platform SDK form Microsoft? See also:<BR>&gt;<BR>&gt; http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1251<BR>&gt;<BR>&gt; Best regards,<BR>&gt; Bart<BR>&gt;<BR>&gt; rock well wrote: Hi fleuren the reason i dont want to use hobus<BR>&gt; mapserver is i guess it doesnt have the support for mrsid format and<BR>&gt; also sde libraries which i already have configured using the<BR>&gt; conventional mapserver. i was able to get rid of these error and was<BR>&gt; able to create the libpadll.lib but i wasnt able to create the<BR>&gt;
 libpq.dll<BR>&gt; file as it gave me the following error<BR>&gt;<BR>&gt; &gt;<BR>&gt; &gt; libpq.lib(fe-connect.obj) : error LNK2001: unresolved external<BR>&gt; symbol<BR>&gt; &gt; _SHGetFolderpath<BR>&gt; &gt; .\Release\libpq.dll : fatal error LNK1120: 1 unresolved externals<BR>&gt; &gt;<BR>&gt; &gt; and the execution stopped .....<BR>&gt; &gt;<BR>&gt; &gt; i guess someone might have encountered this problem, if so can you<BR>&gt; &gt; give me some tips to solve it .....<BR>&gt; &gt;<BR>&gt; &gt; If you dont mind fleuren can you send me the libpq.dll as an<BR>&gt; &gt; attachment as thats the only file i need to get going ....<BR>&gt; &gt;<BR>&gt; &gt; Thanks a lot for your help ....<BR>&gt; &gt; kris<BR>&gt; &gt;<BR>&gt; &gt; */Huub Fleuren /* wrote:<BR>&gt; &gt;<BR>&gt; &gt; Hi Kris,<BR>&gt; &gt;<BR>&gt; &gt; I did feel lucky that the compile did not end with the word Stop.<BR>&gt; &gt; I'm afraid experience problems like this now with the ECW library.<BR>&gt;
 &gt;<BR>&gt; &gt; Maybe try the very rich .\bin directory of<BR>&gt; &gt;<BR>&gt; http://hobu.stat.iastate.edu/mapserver/build_output/mapserver-4.8.3-msvc71-build-kit.zip<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; this is a set for msvc7, so probably, issues on vc6<BR>&gt; &gt;<BR>&gt; &gt; Regards, Huub<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; rock well schreef:<BR>&gt; &gt; &gt; Thanks for your reply fleuren, yes i did the same way you told but<BR>&gt; &gt; &gt; still it give the following errors<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; LINK : fatal error LNK1181: cannot open input file "shfolder.lib"<BR>&gt; &gt; &gt; NMAKE : fatal error U1077: 'link.exe' : return code '0x49d'<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Do you know why we get these errors, or else all we need is i<BR>&gt; guess<BR>&gt; &gt; &gt; the libpqdll.lib and some dlls right, if anything doesnt work<BR>&gt; &gt; can you<BR>&gt; &gt; &gt; send me those dlls.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Thanks verymuch for
 your help and time ...<BR>&gt; &gt; &gt; kris<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; */Huub Fleuren /* wrote:<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Hi Rock,<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; i recently compiled postgreql-8.1.3 with vc6sp4 and<BR>&gt; &gt; &gt; 5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img<BR>&gt; &gt; &gt; (install from virtual CD)<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; first vcvars32<BR>&gt; &gt; &gt; then setenv<BR>&gt; &gt; &gt; then nmake /f win32.mak<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; after a failure you always do nmake /f win32.mak clean<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Regards, Huub<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; rock well schreef:<BR>&gt; &gt; &gt; &gt; Hi all, i am trying to compile mapserver with postgre sql<BR>&gt; &gt; &gt; support. I<BR>&gt; &gt; &gt; &gt; found this documentation in the mapserver website<BR>&gt; &gt; &gt; &gt; http://mapserver.gis.umn.edu/docs/howto/win32_compiling<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; I
 downloaded the MS platform sdk and installed it, when i try to<BR>&gt; &gt; &gt; run<BR>&gt; &gt; &gt; &gt; the win32.mak file in the libpq directory it still says<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; LINK : fatal error LNK1181: cannot open input file<BR>&gt; "shfolder.lib"<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; the shfolder.lib does exist in the the default MS platform sdk<BR>&gt; &gt; &gt; folder,<BR>&gt; &gt; &gt; &gt; do i have to change something or am i doing something wrong ...<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; Thanks for your time ....<BR>&gt; &gt; &gt; &gt; kris<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; &gt; &gt; &gt; Blab-away for as little as 1¢/min. Make PC-to-Phone Calls<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; using Yahoo! Messenger with Voice.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt;
 &gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; &gt; &gt; Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; for just 2¢/min with Yahoo! Messenger with Voice.<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min<BR>&gt; &gt;<BR>&gt; &gt; with Yahoo! Messenger with Voice.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; -- <BR>&gt; Bart van den Eijnden<BR>&gt; OSGIS, Open Source GIS<BR>&gt; http://www.osgis.nl<BR>&gt;<BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; Do you Yahoo!?<BR>&gt; Everyone is raving about the all-new Yahoo! Mail Beta. <BR>&gt; <HTTP: evt="40791/*http://advision.webevents.yahoo.com/handraisers" us.rd.yahoo.com><BR><BR><BR></BLOCKQUOTE><BR><p>
        
                <hr size=1>Sneak preview the <a href="http://us.rd.yahoo.com/evt=40762/*http://www.yahoo.com/preview"> all-new Yahoo.com</a>. It's not radically different. Just radically better.