03-12-2005, 10:50 PM
Hello,
I've looked through the examples directory but I can't seem to find the answer I am looking for.
Here is my C file:
This is my test.bi file:
This is my test.bas file:
I compiled the c file:
Then I made it a lib:
But when I do:
I get:
or when I try:
I get:
So, what should I do?
I've looked through the examples directory but I can't seem to find the answer I am looking for.
Here is my C file:
Code:
int testme ()
{
return 5 + 3;
}
This is my test.bi file:
Code:
#ifndef TST_BI
#define TST_BI
declare function testme cdecl alias "testme" ( ) as
#endif ' TST_BI
This is my test.bas file:
Code:
'$include: "test.bi"
print "Hello, we are going to make a test now :)"
print testme()
print "Did it work?"
I compiled the c file:
Code:
gcc -c test.c
Code:
fbc -lib test.o
Code:
fbc -l ./libtest.a test.bas
Code:
ld: cannot find -l./libtest.a
Code:
fbc test.bas
Code:
test.o(.text+0x53): In function `_t0000':
: undefined reference to `testme'
So, what should I do?
b newbie
running Fedora Core Linux 3
running Fedora Core Linux 3