Thank you but this doesnt work!

Now want to make the ".so" file with the HOWTO: Creating a Plugin Model from
the Gazebosite.

Building the shared library:g++ -Wall -g3 -c ExampleModel.cc
<--- this works
g++ -shared -nostartfiles -o ExampleModel.so ExampleModel.o

here cames the error:

g++ -shared -nostartfiles -o Bluebotic.so Bluebotic.o
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
Bluebotic.o: relocation R_X86_64_32 against `NewBluebotic(World*)' can not
be used when making a shared object; recompile with -fPIC
Bluebotic.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

I dont know what to do
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to