<div>Hi fleuren, thanks for all your help. I am able to solve the problem now, the lib or include paths 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> </div>  <div>I really appreciate your help and thanks ...</div>  <div> </div>  <div>Thanks for all you guys who helped me with this problem ....</div>  <div> </div>  <div>kris<BR><BR><B><I>Huub Fleuren <hfl@home.nl></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>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>set include<BR>Environment variable include not defined<BR><BR>E:\projects\postgresql-8.1.3\src>set lib<BR>Environment variable lib not defined<BR><BR>so begin.<BR><BR>E:\projects\postgresql-8.1.3\src>vcvars32<BR><BR>E:\projects\postgresql-8.1.3\src>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>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>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>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>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>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>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>> yes i did install the platform sdk and there is also an shfolder.lib <BR>> file in the sdk folder, though it gives me an error .....<BR>> <BR>> Thanks for your reply .....<BR>><BR>> */"Bart van den Eijnden (OSGIS)" <BARTVDE@XS4ALL.NL>/* wrote:<BR>><BR>> Did you install the Platform SDK form Microsoft? See also:<BR>><BR>> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1251<BR>><BR>> Best regards,<BR>> Bart<BR>><BR>> rock well wrote: Hi fleuren the reason i dont want to use hobus<BR>> mapserver is i guess it doesnt have the support for mrsid format and<BR>> also sde libraries which i already have configured using the<BR>> conventional mapserver. i was able to get rid of these error and was<BR>> able to create the libpadll.lib but i wasnt able to create the<BR>>
 libpq.dll<BR>> file as it gave me the following error<BR>><BR>> ><BR>> > libpq.lib(fe-connect.obj) : error LNK2001: unresolved external<BR>> symbol<BR>> > _SHGetFolderpath<BR>> > .\Release\libpq.dll : fatal error LNK1120: 1 unresolved externals<BR>> ><BR>> > and the execution stopped .....<BR>> ><BR>> > i guess someone might have encountered this problem, if so can you<BR>> > give me some tips to solve it .....<BR>> ><BR>> > If you dont mind fleuren can you send me the libpq.dll as an<BR>> > attachment as thats the only file i need to get going ....<BR>> ><BR>> > Thanks a lot for your help ....<BR>> > kris<BR>> ><BR>> > */Huub Fleuren /* wrote:<BR>> ><BR>> > Hi Kris,<BR>> ><BR>> > I did feel lucky that the compile did not end with the word Stop.<BR>> > I'm afraid experience problems like this now with the ECW library.<BR>>
 ><BR>> > Maybe try the very rich .\bin directory of<BR>> ><BR>> http://hobu.stat.iastate.edu/mapserver/build_output/mapserver-4.8.3-msvc71-build-kit.zip<BR>> ><BR>> ><BR>> > this is a set for msvc7, so probably, issues on vc6<BR>> ><BR>> > Regards, Huub<BR>> ><BR>> ><BR>> > rock well schreef:<BR>> > > Thanks for your reply fleuren, yes i did the same way you told but<BR>> > > still it give the following errors<BR>> > ><BR>> > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib"<BR>> > > NMAKE : fatal error U1077: 'link.exe' : return code '0x49d'<BR>> > ><BR>> > > Do you know why we get these errors, or else all we need is i<BR>> guess<BR>> > > the libpqdll.lib and some dlls right, if anything doesnt work<BR>> > can you<BR>> > > send me those dlls.<BR>> > ><BR>> > > Thanks verymuch for
 your help and time ...<BR>> > > kris<BR>> > ><BR>> > > */Huub Fleuren /* wrote:<BR>> > ><BR>> > > Hi Rock,<BR>> > ><BR>> > > i recently compiled postgreql-8.1.3 with vc6sp4 and<BR>> > > 5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img<BR>> > > (install from virtual CD)<BR>> > ><BR>> > > first vcvars32<BR>> > > then setenv<BR>> > > then nmake /f win32.mak<BR>> > ><BR>> > > after a failure you always do nmake /f win32.mak clean<BR>> > ><BR>> > > Regards, Huub<BR>> > ><BR>> > > rock well schreef:<BR>> > > > Hi all, i am trying to compile mapserver with postgre sql<BR>> > > support. I<BR>> > > > found this documentation in the mapserver website<BR>> > > > http://mapserver.gis.umn.edu/docs/howto/win32_compiling<BR>> > > ><BR>> > > > I
 downloaded the MS platform sdk and installed it, when i try to<BR>> > > run<BR>> > > > the win32.mak file in the libpq directory it still says<BR>> > > ><BR>> > > > LINK : fatal error LNK1181: cannot open input file<BR>> "shfolder.lib"<BR>> > > ><BR>> > > > the shfolder.lib does exist in the the default MS platform sdk<BR>> > > folder,<BR>> > > > do i have to change something or am i doing something wrong ...<BR>> > > ><BR>> > > > Thanks for your time ....<BR>> > > > kris<BR>> > > ><BR>> > > ><BR>> > ><BR>> ><BR>> ------------------------------------------------------------------------<BR>> > > > Blab-away for as little as 1¢/min. Make PC-to-Phone Calls<BR>> > > ><BR>> > > > using Yahoo! Messenger with Voice.<BR>> > ><BR>> > ><BR>> > ><BR>>
 ><BR>> ------------------------------------------------------------------------<BR>> > > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries<BR>> > ><BR>> > > for just 2¢/min with Yahoo! Messenger with Voice.<BR>> ><BR>> ><BR>> > Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min<BR>> ><BR>> > with Yahoo! Messenger with Voice.<BR>><BR>><BR>><BR>> -- <BR>> Bart van den Eijnden<BR>> OSGIS, Open Source GIS<BR>> http://www.osgis.nl<BR>><BR>><BR>> ------------------------------------------------------------------------<BR>> Do you Yahoo!?<BR>> Everyone is raving about the all-new Yahoo! Mail Beta. <BR>> <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.