I am trying to compile this code by two methods <span style="background-color:rgb(255,255,0)" name="textmarker_8" id="textmarked_7"></span><span style="background-color:rgb(255,255,0)" name="textmarker_7" id="textmarked_6"></span>but it shows error<br>
1) Without -lvirt option<br><font size="1"><i>/tmp/ccHGRn8q.o: In function `main':<br>ex1.c:(.text+0x15): undefined reference to `virConnectOpen'<br>ex1.c:(.text+0x57): undefined reference to `virConnectClose'</i></font><br>
<br>2) with -lvirt option<br><font size="1"><i>/usr/bin/ld: cannot find -lvirt<br>collect2: ld returned 1 exit status</i></font><br><br>Someone help me!<span style="background-color:rgb(255,255,0)" name="textmarker_18" id="textmarked_17"></span><span style="background-color:rgb(255,255,0)" name="textmarker_17" id="textmarked_16"></span><span style="background-color:rgb(255,255,0)" name="textmarker_16" id="textmarked_15"></span><span style="background-color:rgb(255,255,0)" name="textmarker_15" id="textmarked_14"></span><span style="background-color:rgb(255,255,0)" name="textmarker_14" id="textmarked_13"></span><span style="background-color:rgb(255,255,0)" name="textmarker_13" id="textmarked_12"></span><span style="background-color:rgb(255,255,0)" name="textmarker_12" id="textmarked_11"></span><span style="background-color:rgb(255,255,0)" name="textmarker_11" id="textmarked_10"></span><br>
<span style="background-color:rgb(255,255,0)" name="textmarker_10" id="textmarked_9"></span><span style="background-color:rgb(255,255,0)" name="textmarker_9" id="textmarked_8"></span><span style="background-color:rgb(255,255,0)" name="textmarker_6" id="textmarked_5"></span><span style="background-color:rgb(255,255,0)" name="textmarker_5" id="textmarked_4"></span><span style="background-color:rgb(255,255,0)" name="textmarker_4" id="textmarked_3"></span><span style="background-color:rgb(255,255,0)" name="textmarker_3" id="textmarked_2"></span><span style="background-color:rgb(255,255,0)" name="textmarker_2" id="textmarked_1"></span><span style="background-color:rgb(255,255,0)" name="textmarker_1" id="textmarked_0"></span>