Compiling Issues -
11-04-2005
, 05:11 AM
Hi,
My apologies to everyone sick of hearing about compiling problems, but
I have one that I can't find the answer to.
In brief, after following all the instructions in README.vc, the
compiler says it can't find winsock.h
I usually do all my development on VC++ 6.0, but after discovering that
this compiler wouldn't cope with mysql++ I downloaded the VC++ Toolkit
2003 as suggested and mingw32-make. I then changed changed the
MYSQL_DIR to point to the right place. Then after a makemake and
mingw32-make, it gave the above error.
I then tried to change the CXXFLAGS in makefile.vc to this
CXXFLAGS=/I$(MYSQL_DIR)\include /I$(WIN_DIR) /DMYSQLPP_MAKING_DLL
/D_WINDLL /D_UNICODE \
where WIN_DIR="C:\Program Files\Microsoft Visual Studio\VC98\Include",
which is the path to the include files I've used in the past.
Perhaps not surprisingly, this didn't work, the error message this
time:
c:\Program Files\Microsoft Visual Studio\VC98\Include\UTILITY(81) :
warning C434
6: '_It::iterator_category' : dependent name is not a type prefix with
'typename' to indicate a type
c:\Program Files\Microsoft Visual Studio\VC98\Include\UTILITY(84) : see
reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
Does this mean I have to get the full Win32 SDK for .NET or similar? Is
there a simpler solution that doesn't require a massive download?
I appreciate any light that anyone can shed on this.
many thanks
Tim Long |