|
From: Bernhard B. <inf...@gm...> - 2005-02-07 18:07:38
|
Hi everyone!
I'm searching for a 3D library for a university project.
ATM I'm testing quesa, but get an error when I try linking.
my prog:
#define QUESA_OS_UNIX
#include <Quesa.h>
#include <stdio.h>
int main (void) {
Q3Initialize();
if (Q3IsInitialized())
{
printf("YES\n");
return 1;
}
else {
printf("NO\n");
return 0;
}
}
compilation is ok with following command:
g++ -ansi -pedantic -Wall -g -c -I/usr/local/include/quesa test-quesa.cc
but linking fails with following error:
g++ -o test-quesa test-quesa.o
test-quesa.o(.text+0x9): In function `main':
/home/derber/bernhard/9.semester/programmierpraktikum/test-quesa.cc:10:=20
undefined reference to `Q3Initialize'
test-quesa.o(.text+0xe):/home/derber/bernhard/9.semester/programmierpraktik=
um/test-quesa.cc:11:=20
undefined reference to `Q3IsInitialized'
collect2: ld returned 1 exit status
when i try linking with defining libquesa explicitly, i get this error:
g++ -l /usr/local/lib/libquesa.so -o test-quesa test-quesa.o
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/=
ld:=20
cannot find -l/usr/local/lib/libquesa.so
collect2: ld returned 1 exit status
i have no idea if this is quesa related or a general linking problem, but=20
hopefully someone can help me.
Bernhard
|