<p>I am trying to write a C program that uses <code>dlysm</code>, and I keep getting an undefined reference to dlysm. I think I need to set my <code>-ldl</code> flags but I have no idea how to do this. </p>

<p>I am very new to linux and setting variables. If this is what I need to do can someone help me out with the commands?</p>

Pass
```
-ldl
```
as a parameter to the compiler.
Example:
```
```
gcc myprog.c -o app -ldl
```
```