make qsort

make qsort

When I make the example qsort, an error shows like this,

cilk++ qsort.cilk -O1 -g -lcilkutil -o qsort

ld:cannot find -lgcc_s

collect2: ld returned 1 exit status

make: *** [qsort] Error 1

I added cilk/bin to PATH and copied cilk/lib32/libgcc_s.so.1 to lib directory, but it does not help.

It can be compiled successfully by merely gcc qsort -c -o qsort.o

The gcc in cilk/bin is download form here.

Wht is the matter? I looked libgcc_s.so.1 in the whole system and found many copies in diffrent directories.

Which one is the right one, that in cilk/lib32/ directory should be used, I think?

The system is Linux 2.4.18 on VMware

Thank you

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

On Linux (unlike Windows) $PATH does not control shared library searching.

You can add cilk/lib32 to LD_LIBRARY_PATH when running the program, or add it when linking with an option like -Wl,-rpath,..../cilk32/lib.

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya