Skip to content

Q: compile error #1

Description

@kingjr

Hi,

I'm stuck at the compile step. I run the command make and get

gcc -std=c99 -O3 -shared -o _layout.so layout.c
/usr/bin/ld: /tmp/ccbKpqJX.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/tmp/ccbKpqJX.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [_layout.so] Error 1

Any advice on how to proceed?

Thanks a lot!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions