Author Topic: error  (Read 3794 times)

Offline Marcel

  • Single posting newcomer
  • *
  • Posts: 9
error
« on: June 16, 2008, 03:24:49 pm »
I wanted to compile a plugin for xchat with wxwidgets inside. (sorry for my english ;p)

I get this errors:
/usr/bin/ld: obj/Release/main.o: relocation R_X86_64_32 against `Simple::sm_eventTable' can not be used when making a shared object; recompile with -fPIC

So, how can I compile with -fPIC ?

Offline dje

  • Lives here!
  • ****
  • Posts: 682
Re: error
« Reply #1 on: June 16, 2008, 03:47:09 pm »
It looks like a macro.
You can add it in the compiler options of your project settings.

Dje

Offline Marcel

  • Single posting newcomer
  • *
  • Posts: 9
Re: error
« Reply #2 on: June 16, 2008, 03:48:18 pm »
Mhhh do you have a example, I don't understand, sorry ;)

edit:
I put it to project->build options->other options, but it's still the same error
« Last Edit: June 16, 2008, 03:51:34 pm by Marcel »