Skip to Content.
Sympa Menu

freetds - Re: [freetds] freetds in win32

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Frank M. Kromann" <frank AT kromann.info>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] freetds in win32
  • Date: Thu, 06 Feb 2003 12:07:51 -0800

This is what I added to the .dsp tile.

# Begin Group "Custom Build"

# PROP Default_Filter ""
# Begin Source File

SOURCE=..\..\include\tds_sysdep_public.h.in

!IF "$(CFG)" == "FreeTDS - Win32 Release"

# Begin Custom Build
InputDir=\php\freetds-0.61\include
InputPath=..\..\include\tds_sysdep_public.h.in

BuildCmds= \
copy $(InputPath) $(InputDir)\tds_sysdep_public.h \
copy config.h $(InputDir)\config.h \
echo #define FREETDS_SYSCONFDIR "\\Windows\\system32\\drivers\\etc" >
$(InputDir)\freetds_sysconfdir.h \


"$(InputDir)\tds_sysdep_public.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
$(BuildCmds)

"$(InputDir)\freetds_sysconfdir.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
$(BuildCmds)

"$(InputDir)\config.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
$(BuildCmds)
# End Custom Build

!ELSEIF "$(CFG)" == "FreeTDS - Win32 Debug"

!ENDIF

# End Source File
# End Group

- Frank

>
> > I've just tested the latest snapshot and it does not compile with
MSVC,
> > wothout changes.
> >
> > This is a list of issues:
> >
> > 1) src/odbc/error.c has an absolute path in the project. It needs to
be
> > relative (unless you copy alle files to a predefined location).
> >
> > 2) win32\msvc6\config.h needs to be copied to include.
> >
> > 2) tds_sysdep_public.h needs to be copied from tds_sysdep_public.h.in
> >
> > 3) freetds_sysconfdir.h needs to be generated. Is there a predefined
> > directory for the conf files on Win32 ?
%SystemRoot%\system32\drivers\etc
> > does not exist on all platforms.
> >
> > 4) SQLULEN is not defined on WIn32. This will take a small code
change
> >
> > 1-3 can be handled from the .dsp file. I can provide a diff for this.
> >
>
> All fixed in CVS (BRANCH0_61 and MAIN).
> My solution for problem 2 seem not so good... another solution is to
> provide a tds_sysdep_public.h under msvc6 directory with only this
line:
> #include "tds_sysdep_public.h.in"
> I used c:\ for problem 3... not so good, I know...
>
> freddy77
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>







Archive powered by MHonArc 2.6.24.

Top of Page