If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Firebird - help with linking the dll

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-09, 13:27
dbStrob dbStrob is offline
Registered User
 
Join Date: Jun 2009
Posts: 3
Firebird - help with linking fbclient.dll to the project

Hello,

I try to write a simple application using:
vs2008 ,vc++, Firebird-2.1.2.18118-0_Win32_embed, ibpp-2-5-3-1-src.

When I build my project, I get the following error:
fatal error LNK1104: cannot open file 'D:\My.obj'

I would appreciate your help with solving the error so I can setup a working environment for my application.

Project Description:
-------------------
I started a new empty win32 console application in vs2008 and created the file dbTest.cpp containing the following code:

Code:
#define IBPP_WINDOWS
#include "ibpp\ibpp.h"

int main() {
	IBPP::Database db;
	db = IBPP::DatabaseFactory("Embedded", "db1.fdb", " ", " ");
	db->Create(3);
	return 0;
}
The project folders looks as follows:
Code:
<Project folder>
│   dbTest.cpp
│   ...
│
├───Debug
│       ...
│
├───Firebird
│   │   aliases.conf
│   │   fbclient.dll
│   │   firebird.conf
│   │   firebird.msg
│   │   ib_util.dll
│   │   icudt30.dll
│   │   icuin30.dll
│   │   icuuc30.dll
│   │   IDPLicense.txt
│   │   IPLicense.txt
│   │   Microsoft.VC80.CRT.manifest
│   │   msvcp80.dll
│   │   msvcr80.dll
│   │   Readme.txt
│   │
│   ├───intl
│   │       ...
│   │
│   └───udf
│           ...
│
└───ibpp
        ...
(where ... indicates the whole folder as downloaded from SourceForge).

I updated the project's properties as follows (This is my first experiance with external dlls so I probably made it wrong):
Configuration prop. -> General -> common language runtime support -> /clr
Linker -> General -> additional library directories -> <project folder>\Firebird
Linker -> Input -> Additional dependencies -> <project folder>\Firebird\fbclient.dll

Thanks,
dbStrob

Last edited by dbStrob; 06-27-09 at 15:44.
Reply With Quote
  #2 (permalink)  
Old 06-28-09, 16:00
dbStrob dbStrob is offline
Registered User
 
Join Date: Jun 2009
Posts: 3
Please, if anyone can help me create the simplest application using both firebird and ibpp (or any other c/c++/c# API) - As simple as creating 'hello_world.fdb" database through the API.
It can be by using any of the following IDEs: VS2008, vs2005, Dev-C++, netbeans_6.5 or other.
I can't seem to link the fbclient.dll correctly so the above project I made can't be built.

Thanks,
dbStrob
Reply With Quote
  #3 (permalink)  
Old 07-09-09, 16:05
VLDG VLDG is offline
Registered User
 
Join Date: Mar 2009
Posts: 24
Flamerobin is made in C++ and is for Firebird.

As it is open source : you can download them to see how to connect to database.

flamerobin.org
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On