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/ 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 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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today