From: Warren Young Date: August 20 2004 12:30am Subject: Re: dll problems with borland 6 List-Archive: http://lists.mysql.com/plusplus/3398 Message-Id: <41254626.4060609@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Totte Karlsson wrote: > > 1) In ColData.cc I added > #include What exactly was the error you got without this? I can't formulate a good cross-platform patch based on this report. > 2) In row.hh > The compiler had a problem with the following line (line 249 in row1.hh) > data.insert(data.end(),(d[i]) ? std::string(d[i],jj[i]) : > (std::string)"NULL"); I can change this without breaking cross-platform compatibility. > the lines where changed to > //#include > //#include > //#include > i.e. the headers was simply commented out.. don't know what they are doing, > but they are not provided by the borland distribution. I'll remove these for now, but I suspect something like it will have to go back in for VC++. All I can say right now is, whatever VC++ needs, this isn't it... I wonder what compiler uses a Windows32 directory? > 3) > the header include > #include > in connection.hh > was changed to > #include The right fix is more complicated. I'll add it to .13. > in convert.hh > the lines > mysql__convert(float, strtod) > ... > were changed into > ... > mysql__convert(float, std::strtod) That shouldn't be necessary. Try adding #include to the top of the file. strtod is only in namespace std if you include cstdlib instead, and I see no good reason to use that in this case. > [C++ Warning] coldata3.hh(8): W8017 Redefinition of 'errno' is not > identical Remove this line from the file: #define errno WSAGetLastError() It shouldn't be needed. This is in all the files where you removed the Windows32 #include lines. > [C++ Warning] null1.hh(16): W8058 Cannot create pre-compiled header: > initialized data in header That can be fixed with a project setting. Speaking of the project file, are you going to send it to me? > [TLib Warning] public '_STL::operator > <<(_STL::basic_ostream<_STL::char_traits<...' in module 'connection' clashes > with prior module 'coldata' I'm not sure what this one means. Would you please do some research on this and get back to me? I suspect it's a common problem in many projects (i.e. not MySQL++ specific), but I can't guess at the fix since I don't use BCB.