<div dir="ltr">Hola, saludos a tod@s. Me llamo Oscar y visto que tengo mucho tiempo libre me he puesto a aprender C.<div><br></div><div>Estoy bajo Linux Debian 32bits usando Geany como interfaz.</div><div>Además de la web de cconclase, estoy usando un libro de lectura fácil.</div><div><br></div><div>Tengo un problema con el fichero conio.h que en linux no existe.</div><div>He buscado y he instalado<span style="color:rgb(51,51,51);font-family:'Courier New',Courier,monospace;font-size:14px;line-height:19.6000003814697px;text-align:justify"> libncurses5-dev libncursesw5-dev</span><span style="color:rgb(51,51,51);font-family:'Courier New',Courier,monospace;font-size:14px;line-height:19.6000003814697px;text-align:justify">sudo</span></div><div><span style="color:rgb(51,51,51);font-family:'Courier New',Courier,monospace;font-size:14px;line-height:19.6000003814697px;text-align:justify"><br></span></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px">Para usar ncurses.h</span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px"><br></span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px">Todo viene por intentar usar gotoxy pero he visto que en ncurses.h está move (que viene a ser lo mismo, ¿no?).</span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px"><br></span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px">El caso es, que move no me lo acepta y tampoco ncurses.h o curses.h</span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px"><br></span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px">El caso es, ¿que puedo hacer para mover el cursor y que escriba en otra lína?.</span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px"><br></span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px">Dejo el código que tengo escrito y lo que me sale en el compilador.</span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><span style="font-size:14px;line-height:19.6000003814697px"><br></span></font></div><div style="text-align:justify"><font color="#333333" face="Courier New, Courier, monospace"><div style><span style="font-size:14px;line-height:19.6000003814697px"><br></span></div><div style><span style="font-size:14px;line-height:19.6000003814697px">#include <stdio.h></span></div><div style><span style="font-size:14px;line-height:19.6000003814697px">#include <ncurses.h></span></div><div style><span style="font-size:14px;line-height:19.6000003814697px">/* no existe #include <conio.h> */</span></div><div style><span style="font-size:14px;line-height:19.6000003814697px"><br></span></div><div style><span style="font-size:14px;line-height:19.6000003814697px">int main()</span></div><div style><span style="font-size:14px;line-height:19.6000003814697px">{</span></div><div style><span style="font-size:14px;line-height:19.6000003814697px"><span class="" style="white-space:pre">  </span>move (20,10);</span></div><div style><span style="font-size:14px;line-height:19.6000003814697px"><span class="" style="white-space:pre">       </span>/* linea inicial después de buscar por google printf("\033[9;9f \n"); */</span></div><div style><span style="font-size:14px;line-height:19.6000003814697px">/*linea original gotoxy (20,10); */</span></div><div style><span style="font-size:14px;line-height:19.6000003814697px">/* me estoy liando printf ("\033[9:9f \n" "hola mundo\n Adiós mundo"); */</span></div><div style><span style="font-size:14px;line-height:19.6000003814697px">printf ("hola mundo\n""adiós mundo\n");<span class="" style="white-space:pre">        </span></span></div><div style><span style="font-size:14px;line-height:19.6000003814697px"><span class="" style="white-space:pre">    </span>return 0;</span></div><div style><span style="font-size:14px;line-height:19.6000003814697px">}</span></div><div style="font-size:14px;line-height:19.6000003814697px"><br></div><div style="font-size:14px;line-height:19.6000003814697px"><br></div><div style="font-size:14px;line-height:19.6000003814697px"><div style="line-height:19.6000003814697px">gcc -Wall -o "segundo" "segundo.c" (en el directorio: /home/oscar/Dropbox/clases C)</div><div style="line-height:19.6000003814697px">/tmp/cct6vARm.o: In function `main':</div><div style="line-height:19.6000003814697px">segundo.c:(.text+0xa): undefined reference to `stdscr'</div><div style="line-height:19.6000003814697px">segundo.c:(.text+0x22): undefined reference to `wmove'</div><div style="line-height:19.6000003814697px">collect2: error: ld returned 1 exit status</div><div style="line-height:19.6000003814697px">Ha fallado la compilación.</div><div><br></div><div><br></div><div>Por favor, un poco de ayuda sería muy agradecida...</div></div></font></div></div>