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