News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Solved problem building plugins on linux added to the wiki

Started by Ganbito, November 25, 2008, 12:00:45 AM

Previous topic - Next topic

Ganbito

I started with plugin development for Code::Blocks under Ubuntu 8.04.1 64bits.

When I try to compile it I've found this ploblem:

Compiling: HelloWorldPlugin.cpp
Linking dynamic library: HelloWorldPlugin.so
/usr/bin/ld: .objs/HelloWorldPlugin.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.objs/HelloWorldPlugin.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings


I've searched the forum and I've found some topics about this problem, with its solution and I decided to include it on the wiki because it can be helpful for new C::B plugin developers.

Creating a simple "Hello World" plugin