Re: 0.83.dev.20100507 and Visual Studio 2010

Paul Thurston <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <2A93B3F6EB39EA48A0D41234D272A82A5F501E6DDF@EXVMBX020-11.exch020.serverdata.net>
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: [email protected] [mailto:[email protected]] 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: [email protected]

> [mailto:[email protected]] 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

>

> [email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>

>

> http://lists.ibiblio.org/mailman/listinfo/freetds

> _______________________________________________

> FreeTDS mailing list

> [email protected]<mailto:[email protected]>

> http://lists.ibiblio.org/mailman/listinfo/freetds



Harry Sfougaris









_______________________________________________

FreeTDS mailing list

[email protected]<mailto:[email protected]>

http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.