Skip to Content.
Sympa Menu

freetds - RE: [freetds] Some tds_* functions have changed in the last sever al weeks???

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'freetds AT lists.ibiblio.org'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Some tds_* functions have changed in the last sever al weeks???
  • Date: Thu, 12 Dec 2002 09:31:32 -0500

> From: Frediano Ziglio [mailto:freddyz77 AT tin.it]
> Sent: December 12, 2002 2:29 AM
>
> In this day I'm
> compiling FreeTDS with g++ (GNU C++ compiler) that found
> those errors (C++ is much more typesafe) and I remove them.
> So this types of warnings should just disappear. Do not try
> however to link and use FreeTDS with a C++ compiler. It do
> not work (for name mangling reasons).

Am I missing something?

It should be entirely possible to compile FreeTDS with a C++ compiler and
link it to a C program. The header files are full of

#ifdef __cplusplus
extern "C"
{
#if 0
}
#endif
#endif

which should be just:

#ifdef __cplusplus
extern "C"
{
#endif

declaring all the functions as having C linkage.

As a matter of fact, I'm thinking of rewriting parts of FreeTDS in C++ and
exporting the functions as C functions. There are many places where the
flat namespace and lack of destructors makes the code complex in that way
that only C can.

--jkl


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.





  • RE: [freetds] Some tds_* functions have changed in the last sever al weeks???, Lowden, James K, 12/12/2002

Archive powered by MHonArc 2.6.24.

Top of Page