Thread: Update /src/tools/msvc to VC++ 2008
I have recently installed MS VC++ 2008 Express Edition for a project that interfaces with PostgreSQL. I really liked that it had tools for creating the solution and projects under VC++. However, the perl scripts create solution and project files for VC++ 2005. This causes the build to fail if you have 2008 installed since the projects need to be updated before they can be built with vcbuild. I rewrote the perl scripts to format the solution and project files for 2008 and everything works fine now. 2 questions:
- Is there an update to these files I don’t know about that could have saved me this work?
- Can I submit my scripts and have the msvc tools reviewed/updated?
Thanks,
Dave Huber
This electronic mail message is intended exclusively for the individual(s) or entity to which it is addressed. This message, together with any attachment, is confidential and may contain privileged information. Any unauthorized review, use, printing, retaining, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email message to the sender and delete all copies of this message.
THIS E-MAIL IS NOT AN OFFER OR ACCEPTANCE: Notwithstanding the Uniform Electronic Transactions Act or any other law of similar import, absent an express statement to the contrary contained in this e-mail, neither this e-mail nor any attachments are an offer or acceptance to enter into a contract, and are not intended to bind the sender, LeTourneau Technologies, Inc., or any of its subsidiaries, affiliates, or any other person or entity.
WARNING: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
Dave Huber <DHuber@letourneautechnologies.com> writes: > I have recently installed MS VC++ 2008 Express Edition for a project > that interfaces with PostgreSQL. I really liked that it had tools for > creating the solution and projects under VC++. However, the perl > scripts create solution and project files for VC++ 2005. This causes > the build to fail if you have 2008 installed since the projects need > to be updated before they can be built with vcbuild. Count on Microsoft to arbitrarily break their customers' code :-( > 2. Can I submit my scripts and have the msvc tools reviewed/updated? I believe the current Windows binaries are still being built with 2005, so unless you can change it in a backwards-compatible fashion, the odds of the patch getting rejected are pretty high. But you can try. This is the wrong list for submitting patches, however --- send to pgsql-hackers. regards, tom lane
Tom Lane wrote: > Dave Huber <DHuber@letourneautechnologies.com> writes: > > 2. Can I submit my scripts and have the msvc tools reviewed/updated? > > I believe the current Windows binaries are still being built with 2005, > so unless you can change it in a backwards-compatible fashion, the odds > of the patch getting rejected are pretty high. But you can try. The other option is having a single program that can emit both formats, assuming that the differences can be kept at a minimum. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
On Fri, Aug 28, 2009 at 18:19, Tom Lane<tgl@sss.pgh.pa.us> wrote: > Dave Huber <DHuber@letourneautechnologies.com> writes: >> I have recently installed MS VC++ 2008 Express Edition for a project >> that interfaces with PostgreSQL. I really liked that it had tools for >> creating the solution and projects under VC++. However, the perl >> scripts create solution and project files for VC++ 2005. This causes >> the build to fail if you have 2008 installed since the projects need >> to be updated before they can be built with vcbuild. > > Count on Microsoft to arbitrarily break their customers' code :-( They don't. They provide upgrade tools that will upgrade the format of the project files automatically for you. If your project files are developed in the normal way, you run thi upgrade on them and you're done. In our case, we re-generate them, so they have to be upgraded every time. But the tools are still there. I haven't tried it myself, but IIRC Dave Page did try that at one point, but there were some further issues. Not sure where that ended. >> 2. Can I submit my scripts and have the msvc tools reviewed/updated? > > I believe the current Windows binaries are still being built with 2005, > so unless you can change it in a backwards-compatible fashion, the odds > of the patch getting rejected are pretty high. But you can try. This > is the wrong list for submitting patches, however --- send to > pgsql-hackers. If you can produce a patch that will make it work with *both* 2005 and 2008, that will definitely be accepted. If you provide one that does only 2008, it won't. Again, I know Dave P looked into making the scripts smart enough to generate them in 2005 format and then automatically update it if you ran on 2008, not sure where it ended. That is one approach. Another approach is to have the scripts detect which version is in your environment, and generate files in that version. That really depends on how big the format difference is. If they're fairly small, this is perhaps the best way. I'd much like to see the patch that makes it run on 2008, so we can discuss which of these two methods will be best. As Tom says, please do so on the pgsql-hackers mailinglist. -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/
Added to TODO: Allow compilation using MSVC 2008 --------------------------------------------------------------------------- Magnus Hagander wrote: > On Fri, Aug 28, 2009 at 18:19, Tom Lane<tgl@sss.pgh.pa.us> wrote: > > Dave Huber <DHuber@letourneautechnologies.com> writes: > >> I have recently installed MS VC++ 2008 Express Edition for a project > >> that interfaces with PostgreSQL. I really liked that it had tools for > >> creating the solution and projects under VC++. However, the perl > >> scripts create solution and project files for VC++ 2005. This causes > >> the build to fail if you have 2008 installed since the projects need > >> to be updated before they can be built with vcbuild. > > > > Count on Microsoft to arbitrarily break their customers' code :-( > > They don't. They provide upgrade tools that will upgrade the format of > the project files automatically for you. > > If your project files are developed in the normal way, you run thi > upgrade on them and you're done. > > In our case, we re-generate them, so they have to be upgraded every > time. But the tools are still there. I haven't tried it myself, but > IIRC Dave Page did try that at one point, but there were some further > issues. Not sure where that ended. > > > >> ?2. ?Can I submit my scripts and have the msvc tools reviewed/updated? > > > > I believe the current Windows binaries are still being built with 2005, > > so unless you can change it in a backwards-compatible fashion, the odds > > of the patch getting rejected are pretty high. ?But you can try. ?This > > is the wrong list for submitting patches, however --- send to > > pgsql-hackers. > > If you can produce a patch that will make it work with *both* 2005 and > 2008, that will definitely be accepted. If you provide one that does > only 2008, it won't. > > Again, I know Dave P looked into making the scripts smart enough to > generate them in 2005 format and then automatically update it if you > ran on 2008, not sure where it ended. That is one approach. > > Another approach is to have the scripts detect which version is in > your environment, and generate files in that version. That really > depends on how big the format difference is. If they're fairly small, > this is perhaps the best way. > > I'd much like to see the patch that makes it run on 2008, so we can > discuss which of these two methods will be best. As Tom says, please > do so on the pgsql-hackers mailinglist. > > -- > Magnus Hagander > Me: http://www.hagander.net/ > Work: http://www.redpill-linpro.com/ > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +