|
From: Jose' C. <cru...@ce...> - 2005-02-08 08:06:40
|
Il giorno 07/feb/05, alle 19:07, Bernhard Breinbauer ha scritto:
> 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:
> undefined reference to `Q3Initialize'
> test-quesa.o(.text+0xe):/home/derber/bernhard/9.semester/
> programmierpraktikum/test-quesa.cc:11:
> 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:
> 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
> hopefully someone can help me.
>
> Bernhard
>
Hi Bernhard:
couple of questions:
Have you isntalled quesa? ('make install' as root)
are geomtest working on this machine?
How have you get and compiled quesa?
Pax et Bonum
# dott. Jose' Cruanyes Aguilar - C.E. Soft srl
# Pzza. Firenze,4 MILANO - XX Settembre 10, CREMONA
# 02,33603122 0372,460602
|