Hello
os: ubuntu 9.10 x64
I would like to create shared library
I use creator to create project ProjExec which is console app(only contains main with return 0) and ProSlib which is shared library:
I configured:
ProSlib:
Project->Set programs and arguements->This prog provides main executable [checked] and I set path to [Generated binary from ProjExec]
ProjExec:
ProjExec->properties->projcet's dependecis->ProExec depends on ProSlib.
If I would like to build my ProSlib I got this output
-------------- Build: Debug in ProjSlib ---------------
Linking dynamic library: bin/Debug/libProjSlib.so
/usr/bin/ld: obj/Debug/main.o: relocation R_X86_64_32 against `__gxx_personality_v0' can not be used when making a shared object; recompile with -fPIC
obj/Debug/main.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
What I did wrong or didn't do to get this compiled and working?