Compiling with VC6

Compiling with VC6

am 20.09.2003 23:02:40 von Jochen Wiedmann

Hi,

when compiling the DBD::mysql driver with Visual C++ 6, I receive the
following linker error:

mysqlclient.lib(password.obj) : error LNK2001: Unknown external
Symbol __ftol2

According to


http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/vccore/html/vcrefQIfistSuppress_ftol.asp

the problem can be disabled by using the compiler switch /QIfist. I do not
know, whether this will have any side effects on the client library. If so,
could we find a workaround? If not, could the switch be used when compiling
the client library? I hope, that Visual C++ will not be a "must" from now
on.


Regards,

Jochen



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Compiling with VC6

am 21.09.2003 06:20:40 von Randy Kobes

On Sat, 20 Sep 2003, Jochen Wiedmann wrote:

> Hi,
> when compiling the DBD::mysql driver with Visual C++ 6, I receive the
> following linker error:
> mysqlclient.lib(password.obj) : error LNK2001: Unknown external
> Symbol __ftol2
> According to
> http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/vccore/html/vcrefQIfistSuppress_ftol.asp
>
> the problem can be disabled by using the compiler switch
> /QIfist. I do not know, whether this will have any side
> effects on the client library. If so, could we find a
> workaround? If not, could the switch be used when
> compiling the client library? I hope, that Visual C++ will
> not be a "must" from now on.

What version of mysql is this with? I just tried with the
4.0.15-nt binary from http://www.mysql.com/ and didn't see
this problem.

From what I understand, ftol2 is a new function in VC 7 used
to convert floats to integers, and replaces ftol in VC 6.
The /QIfist switch will suppress the ftol2 calls. However,
if the mysqlclient.lib was compiled with VC 7, there may be
problems (in principle), as you can't mix static libs or
objects built with the VC 7 compiler and link them with the
VC 6 CRT. This is especially true when using Win32
ActivePerl, which is built with VC 6.

--
best regards,
randy kobes

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Compiling with VC6

am 21.09.2003 06:20:40 von Randy Kobes

On Sat, 20 Sep 2003, Jochen Wiedmann wrote:

> Hi,
> when compiling the DBD::mysql driver with Visual C++ 6, I receive the
> following linker error:
> mysqlclient.lib(password.obj) : error LNK2001: Unknown external
> Symbol __ftol2
> According to
> http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/vccore/html/vcrefQIfistSuppress_ftol.asp
>
> the problem can be disabled by using the compiler switch
> /QIfist. I do not know, whether this will have any side
> effects on the client library. If so, could we find a
> workaround? If not, could the switch be used when
> compiling the client library? I hope, that Visual C++ will
> not be a "must" from now on.

What version of mysql is this with? I just tried with the
4.0.15-nt binary from http://www.mysql.com/ and didn't see
this problem.

From what I understand, ftol2 is a new function in VC 7 used
to convert floats to integers, and replaces ftol in VC 6.
The /QIfist switch will suppress the ftol2 calls. However,
if the mysqlclient.lib was compiled with VC 7, there may be
problems (in principle), as you can't mix static libs or
objects built with the VC 7 compiler and link them with the
VC 6 CRT. This is especially true when using Win32
ActivePerl, which is built with VC 6.

--
best regards,
randy kobes

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Compiling with VC6

am 21.09.2003 06:20:40 von Randy Kobes

On Sat, 20 Sep 2003, Jochen Wiedmann wrote:

> Hi,
> when compiling the DBD::mysql driver with Visual C++ 6, I receive the
> following linker error:
> mysqlclient.lib(password.obj) : error LNK2001: Unknown external
> Symbol __ftol2
> According to
> http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/vccore/html/vcrefQIfistSuppress_ftol.asp
>
> the problem can be disabled by using the compiler switch
> /QIfist. I do not know, whether this will have any side
> effects on the client library. If so, could we find a
> workaround? If not, could the switch be used when
> compiling the client library? I hope, that Visual C++ will
> not be a "must" from now on.

What version of mysql is this with? I just tried with the
4.0.15-nt binary from http://www.mysql.com/ and didn't see
this problem.

From what I understand, ftol2 is a new function in VC 7 used
to convert floats to integers, and replaces ftol in VC 6.
The /QIfist switch will suppress the ftol2 calls. However,
if the mysqlclient.lib was compiled with VC 7, there may be
problems (in principle), as you can't mix static libs or
objects built with the VC 7 compiler and link them with the
VC 6 CRT. This is especially true when using Win32
ActivePerl, which is built with VC 6.

--
best regards,
randy kobes

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Compiling with VC6

am 21.09.2003 18:20:22 von Jochen Wiedmann

Hi, Randy,

Randy Kobes wrote:

> On Sat, 20 Sep 2003, Jochen Wiedmann wrote:

> What version of mysql is this with? I just tried with the
> 4.0.15-nt binary from http://www.mysql.com/ and didn't see
> this problem.

thanks for your hint. Indeed upgrading from 4.0.13 to 4.0.15 fixed my
problem. It seems the issue was detected and fixed.


Regards,

Jochen



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Compiling with VC6

am 21.09.2003 18:20:22 von Jochen Wiedmann

Hi, Randy,

Randy Kobes wrote:

> On Sat, 20 Sep 2003, Jochen Wiedmann wrote:

> What version of mysql is this with? I just tried with the
> 4.0.15-nt binary from http://www.mysql.com/ and didn't see
> this problem.

thanks for your hint. Indeed upgrading from 4.0.13 to 4.0.15 fixed my
problem. It seems the issue was detected and fixed.


Regards,

Jochen



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Compiling with VC6

am 21.09.2003 18:20:22 von Jochen Wiedmann

Hi, Randy,

Randy Kobes wrote:

> On Sat, 20 Sep 2003, Jochen Wiedmann wrote:

> What version of mysql is this with? I just tried with the
> 4.0.15-nt binary from http://www.mysql.com/ and didn't see
> this problem.

thanks for your hint. Indeed upgrading from 4.0.13 to 4.0.15 fixed my
problem. It seems the issue was detected and fixed.


Regards,

Jochen



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org