Results 1 to 5 of 5
Hi all, i have a strange problem on this compilation, if i type this command :
gcc sample.c -lsybdb -o sample
it compile fine without error and application works fine.
...
- 09-08-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 3
Compiling problem...
Hi all, i have a strange problem on this compilation, if i type this command :
gcc sample.c -lsybdb -o sample
it compile fine without error and application works fine.
but if i compile it using this makefile :
all: sample
sample: sample.o
gcc sample.c -lsysdb -o sample
clean:
rm -rf *o sample
i get this error :
/usr/bin/ld: cannot find -lsysdb
collect2: ld returned 1 exit status
any help?
- 09-08-2009 #2
I don't know what's going on with the setting but
Shouldn't this beCode:sample: sample.o gcc sample.c -lsysdb -o sample
Code:sample: sample.c gcc sample.c -lsysdb -o sample
Make mine Arch Linux
- 09-08-2009 #3Just Joined!
- Join Date
- Sep 2009
- Posts
- 3
- 09-08-2009 #4
looks like typo to me
in command line you have
-lsybdb and
-lsysdb
in makefile
- 09-08-2009 #5Just Joined!
- Join Date
- Sep 2009
- Posts
- 3


Reply With Quote
