Problem linking C++Builder demo program

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Bill Comben

Problem linking C++Builder demo program

Post by Bill Comben » Wed 22 Jun 2005 17:55

Hi, I have used mysql on websites with PHP, I now want to access mysql tables from a PC application using CBuilder 5 and have downloaded the Mydac trial version.

When I compile the Cbuilder5 demo program I get the following linker error

[Linker Fatal Error] Fatal: Unable to open file 'MYCONNECTFORM.OBJ'

Is this a file that I am supposed to provide?, any help would be appreciated.

Thanks in advance

Bill

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 23 Jun 2005 10:08

Please try to compile MyDAC/Demos/Cbuilder5 application

Guest

Post by Guest » Thu 23 Jun 2005 10:23

Hello Ikar, thank you for your reply.

Yes I have tried to compile the MyDAC/Demos/Cbuilder5 application but it gives the compiler error as I stated.

Anything else I could try to fix the problem.

Bill

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 24 Jun 2005 14:29

Please check if Tools->Environment Options->Library->Library path contains '$(BCB)\MyDac\Lib\ path.

Guest

Post by Guest » Mon 27 Jun 2005 09:50

Hi Ikar

The path was not included, so I have added it, but I still get the same error message.

The complete Library path is now

$(BCB)\Lib;$(BCB)\Bin;$(BCB)\Imports;$(BCB)\Projects\Bpl;c:\apro;$(BCB)\MyDac\Lib

Thanks, Bill

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Mon 27 Jun 2005 12:10

Check if the requested file is in this folder.

Guest

Post by Guest » Wed 29 Jun 2005 10:45

Hi Ikar

No the required file does not exist on my system, should it have been part of the download package ?

Thanks, Bill

Guest

Post by Guest » Wed 29 Jun 2005 10:58

This file aviable in the package and also you can make it self:
execute: dcc32 -jphn MyConnectForm.pas

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Wed 29 Jun 2005 14:16

Yes, it is apart of installation. Please re-install MyDAC and check for this file availability.
What is the exact version of MyDAC that you use?

Guest

Post by Guest » Wed 29 Jun 2005 15:57

Hi Ikar and Guest, thanks for your advise.

The file was not included in the demo version that I downloaded last week.

I have now compiled as requested and all is well, I now have a demo program that I can use to test out Mydac.

If all goes well I shall purchase the program in the next few weeks.

Once again thanks for all your help.

Bill

Post Reply