Subject Re: [firebird-support] compiling embeded sql (real newbie)
Author Stanislav Kunc
I am trying, but something is wrong.
newbie.c, fbclient.dll are in C:\tmp\sk\Dev-C++

makefile looks like this:
------------------------------
CPP = gcc


all: newbie.o
gcc newbie.o \
-IC:\tmp\sk\firebird\include \
-LC:\tmp\sk\Dev-C++\bin \
-lfbclient
-o newbie.exe

newbie.o:
$(CPP) -c newbie.c \
-IC:\tmp\sk\firebird\include
-o newbie.o
-----------------------------

And result is:

--------------------------------
C:\tmp\sk\Dev-C++\bin>make
gcc newbie.o \
-IC:\tmp\sk\firebird\include \
-LC:\tmp\sk\Dev-C++\bin \
-lfbclient
newbie.o(.text+0x59):newbie.c: undefined reference to `isc_attach_database@24'
newbie.o(.text+0x69):newbie.c: undefined reference to `isc_sqlcode@4'
newbie.o(.text+0x8e):newbie.c: undefined reference to `isc_detach_database@8'
newbie.o(.text+0x9e):newbie.c: undefined reference to `isc_sqlcode@4'
make: *** [all] Error 1
--------------------------------

I tried different database SQLite. I have sqlite.dll, sqlite.def,
sqlite.c, sqlite.h in one directory.

And this is compiled correctly:
--------------------------------
C:\tmp\sk\Dev-C++\bin>gcc -o sqlite.exe sqlite.c -I.\ -L.\ -lsqlite
C:\tmp\sk\Dev-C++\bin>sqlite
Usage: sqlite DATABASE SQL-STATEMENT
--------------------------------


So is the problem in nonexistence of fbclient.def?

S. Kunc



> On 10 May 2004 at 1:36, Stanislav Kunc wrote:
>
> >newbie.exe:
> > $(CPP) newbie.c \
> > -IC:\Temp\firebird\include -IC:\Temp\Dev-C++\include \
> > -LC:\Temp\firebird\bin -LC:\Temp\firebird\lib
>
> Try to all -lfbclient
>
> SY, Dimitry Sibiryakov.
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>