Skip to content
Advertisement

How can I compile GCC with a shared library?

I create shared library libpl.so.

I use this command to create connections:

JavaScript

And now I try to compile my program using:

JavaScript

but I have errors:

JavaScript

What should I do to fix it? How can I compile it?

Advertisement

Answer

The line

JavaScript

works correctly.

Compile with:

JavaScript

Run with:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement