Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    3

    Unanswered: 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.

  2. #2
    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

  3. #3
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •