Page 1 of 1

Linker error upgrading to Builder 2009

Posted: Wed 26 Aug 2009 17:30
by rfish
I've upgraded a project from Builder 2007 to 2009 and am now getting a linker error, unable to open file CRSQLCONNECTION.OBJ.

I followed the installation notes and compiled (command line) the dclcrdbx120.dpk package. It didn't produce any obj files.

What am I missing?

Fixed problem?

Posted: Thu 27 Aug 2009 18:02
by rfish
If I compile \Source\CRSQLConnection.pas as follows

dcc32 -JPHNE CRSQLConnection.pas

I can generate the obj file neccesary to link in C++ Builder 9

Posted: Thu 27 Aug 2009 18:03
by rfish
Sure seems like I"m talking to myself.

Posted: Fri 28 Aug 2009 06:04
by Dimon
You compile the obj file for C++ Builder 9 correctly.
Note, in RAD Studio 2007 and above the standard TSQLConnection component provides exactly the same functionality as TCRSQLConnection. Therefore the TCRSQLConnection component is not registered automatically.