You are not logged in.

#1 2018-05-06 23:04:57

knewyousir
Member
Registered: 2018-02-22
Posts: 20

CURL and Eclipse C++ in 64bit Arch

Hi all,
I am having trouble getting my c++ code calling CURL functions from shared libraries to compile in 64 bit arch. See here:

bin/ld: ./src/curltest.o: relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/bin/ld: final link failed: Bad value

I added the -fPIC tag to my build options. Program still spits out the same error.

I followed the instructions on the CURL site here.
Get the following error when trying to install the plugin:

Cannot complete the install because some dependencies are not satisfiable
com.curl.eclipse.cde.linux.en.feature.group [8.0.7001.v2016-03-02-023311-79-GhO7w31270140130134422] cannot be installed in this environment because its filter is not applicable.

So, I go to look at the system requirements here:

4.2.2*2, 4.3.2
(*1) CDE doesn't support running on a 64bit Eclipse, even if you are using a 64bit OS, please use 32bit java VM, and 32bit eclipse installation.

I'm using Eclipse version "Oxygen.2 Release (4.7.2)". The asterisk is only marked for v 4.2.2.

Am I out of luck here, or is there a way I can feasibly get this to work on my 64bit system?

If not, is the easiest workaround here simply running a 32bit virtual machine for Eclipse 32bit?
Seems like a lot of work just to get one external library to work...

Thanks for your help.

Offline

Board footer

Powered by FluxBB