You are not logged in.

#1 2012-04-01 11:17:30

Crone
Member
Registered: 2012-03-21
Posts: 71

[SOLVED]C linking problem (fullscreenhack compilation 64bit)

Hello people.

I have had some common issues with adobe flash player and dual monitors so I'm trying to use the also common fix "fullscreenhack" which is written in C.

However when I try to make I get this:

gcc -m32 -o tester tester.c -lX11 -lXrandr
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
make: *** [tester] Error 1

Looks like a linking error. Do you guys have any clues?

Thanks

Last edited by Crone (2012-04-01 12:43:35)

Offline

#2 2012-04-01 12:05:08

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: [SOLVED]C linking problem (fullscreenhack compilation 64bit)

Why are you compiling it for 32bit? Either you don't need the -m32 switch, or you're on 64bit cross compiling for 32bit and need a special toolchain. It's most likely the simpler solution smile

Offline

#3 2012-04-01 12:40:55

Crone
Member
Registered: 2012-03-21
Posts: 71

Re: [SOLVED]C linking problem (fullscreenhack compilation 64bit)

You are right. I am indeed compiling in 64 bit, so I removed the m32 switches from the make file and it compiled. However now, when i make install:

cp libfullscreenhack.so /usr/lib/nspluginwrapper/i386/linux/
cp: cannot create regular file `/usr/lib/nspluginwrapper/i386/linux/': No such file or directory
make: *** [install] Error 1

Edit: Nvm, i just needed to download the package nspluginwrapper. Its all cool now. Thanks a lot for your help man

Last edited by Crone (2012-04-01 12:43:58)

Offline

Board footer

Powered by FluxBB