freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
- From: Paul Thurston <pthurston AT netegrate.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
- Date: Sun, 9 May 2010 10:50:07 -0700
whoops, found the bug. I forgot to move the Windows-specific headers to the
include directory.
Please re-download from
http://www.netegrate.com/index_files/download/SqlServer/
Make sure the include statements in your test application read as follows:
#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <sqlfront.h>
#include <sqldb.h>
Also, please add the path to the unzipped include folder to the config
settings in VC10 of your sample application.
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Harry Sfougaris
Sent: Sunday, May 09, 2010 12:17 PM
To: FreeTDS Development Group
Subject: Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
Thanks for that.
This version "breaks" my Visual Studio test app (it crashes upon calling
dbopen).
I think it's exactly the same behaviour I was getting...
I'm afraid it also doesn't work at all from Qt.
It's like it doesn't understand at all these libraries.
Are you really supposed to share libraries between compilers? I'm sure I had
read somewhere that this is something that cannot be done (different formats).
My build output is the following:
Running build steps for project FreeTDSTest...
Starting: c:/qt/2010.02.1/qt/bin/qmake.exe
C:/Users/harry.MISSIRIAN/Desktop/QtTest/FreeTDSTest/FreeTDSTest.pro -spec
win32-g++ -r Exited with code 0.
Starting: C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory
`C:/Users/harry.MISSIRIAN/Desktop/QtTest/FreeTDSTest'
C:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory
`C:/Users/harry.MISSIRIAN/Desktop/QtTest/FreeTDSTest'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
g++ -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads
g++ -Wl -o debug\FreeTDSTest.exe debug/main.o -L"c:\Qt\2010.02.1\qt\lib"
g++ C:/Freetds/x64/WS2_32.lib C:/Freetds/x64/lib/libTDS.lib
g++ C:/Freetds/lib/FreeTDS.lib C:/Freetds/x64/lib/dblib.lib
g++ -lQtNetworkd4 -lQtCored4
mingw32-make[1]: Leaving directory
`C:/Users/harry.MISSIRIAN/Desktop/QtTest/FreeTDSTest'
mingw32-make: Leaving directory
`C:/Users/harry.MISSIRIAN/Desktop/QtTest/FreeTDSTest'
debug/main.o: In function `main':
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:60: undefined
reference to `dbinit'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:64: undefined
reference to `dberrhandle'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:65: undefined
reference to `dbmsghandle'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:71: undefined
reference to `dblogin'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:76: undefined
reference to `dbsetifile'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:78: undefined
reference to `dbsetlname'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:79: undefined
reference to `dbsetlname'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:80: undefined
reference to `dbsetlname'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:81: undefined
reference to `dbsetlname'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:83: undefined
reference to `tdsdbopen'
C:\Users\harry.MISSIRIAN\Desktop\QtTest\FreeTDSTest/main.cpp:88: undefined
reference to `dbuse'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\FreeTDSTest.exe] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project FreeTDSTest When executing build step 'Make'
On 09 Μαϊ 2010, at 4:49 μ.μ., Paul Thurston wrote:
> Harry:
>
> I've posted a 64 bit build with Buffer Security Check = OFF to
> http://www.netegrate.com/index_files/download/SqlServer/
> Please give it a test when you get a chance.
>
> Thanks,
>
> Paul
>
>
> From: freetds-bounces AT lists.ibiblio.org
> [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Harry
> Sfougaris
> Sent: Saturday, May 08, 2010 6:09 PM
> To: FreeTDS Development Group
> Subject: Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
>
>
>>
>
>> The 32bit libraries that I posted for you are currently in production.
>> This is a known good build.
>
>> This must be an issue in your environment (and in Windows 7, that usually
>> means a security issue).
>
>>
>
>
>
>
>
> Actually, with all my testing I got mixed up, and didn't inform you about
> your libraries.
>
> Your libraries work from my test app in Visual Studio. They even return
> data, which is a huge progress for me!
>
>
>
> However, I cannot try them with Qt, as you must have compiled them with
> Buffer Security Check set to ON.
>
> (Configuration Properties / C/C++ / Code Generation).
>
> That puts a dependency on a lib I can't find bufferoverflowu.lib [I found
> it in a few places, but Qt says it can't read it]).
>
> Also, I get undefined references to many tds_ functions...
>
>
>
> Thanks,
>
> Harry
>
>
>
> _______________________________________________
>
> FreeTDS mailing list
>
> FreeTDS AT lists.ibiblio.org<mailto:FreeTDS AT lists.ibiblio.org<mailto:FreeTDS AT lists.ibiblio.org%3cmailto:FreeTDS AT lists.ibiblio.org>>
>
> http://lists.ibiblio.org/mailman/listinfo/freetds
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org<mailto:FreeTDS AT lists.ibiblio.org>
> http://lists.ibiblio.org/mailman/listinfo/freetds
Harry Sfougaris
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org<mailto:FreeTDS AT lists.ibiblio.org>
http://lists.ibiblio.org/mailman/listinfo/freetds
-
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
, (continued)
-
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010,
Paul Thurston, 05/08/2010
-
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010,
Harry Sfougaris, 05/08/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/08/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/08/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/08/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/08/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/10/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/10/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/10/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Frediano Ziglio, 05/11/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/11/2010
-
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010,
Harry Sfougaris, 05/08/2010
-
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010,
Paul Thurston, 05/08/2010
Archive powered by MHonArc 2.6.24.