error C compiler "#2165: too few arguments in function call" (452 Views)
Reply
Regular Advisor
Fernando Jose P de Souz
Posts: 158
Registered: ‎05-13-2001
Message 1 of 2 (452 Views)

error C compiler "#2165: too few arguments in function call"

Hi,

 

Server: BL890

O.S.: HP-UX 11iv3

 

error: #2165: too few arguments in function call

 

hpxjf61 /tmp # cc t_principal.c
"t_principal.c", line 18: error #2165: too few arguments in function call
    putp(tparm(cursor_address,  2, 30)), printf ("MRS Logistica SA - Rotinas de Baan");
                                     ^

"t_principal.c", line 19: error #2165: too few arguments in function call
    putp(tparm(cursor_address,  3, 30)), printf ("----------------------------------");
                                     ^

"t_principal.c", line 21: error #2165: too few arguments in function call
    putp(tparm(cursor_address,  5, 20)), printf (" 0) - Termino deste script");
                                     ^

"t_principal.c", line 22: error #2165: too few arguments in function call
    putp(tparm(cursor_address,  7, 20)), printf (" 1) - Rotinas BaaN Transferencias e Testes Basicos de Comunicaçao");
                                     ^

"t_principal.c", line 23: error #2165: too few arguments in function call
    putp(tparm(cursor_address,  9, 20)), printf (" 2) - Jobs BaaN    ");
                                     ^

"t_principal.c", line 24: error #2165: too few arguments in function call
    putp(tparm(cursor_address,  11,20)), printf (" 3) - Utilizacao da CPU IBM SP-Baan");
                                     ^

"t_principal.c", line 25: error #2165: too few arguments in function call
    putp(tparm(cursor_address, 13, 20)), printf (" 4) - Ocupacao do Sistema de Arquivos Baan");
                                     ^

"t_principal.c", line 26: error #2165: too few arguments in function call
    putp(tparm(cursor_address, 15, 20)), printf (" 5) - Status do CLUSTER ");
                                     ^

"t_principal.c", line 27: error #2165: too few arguments in function call
    putp(tparm(cursor_address, 17, 20)), printf (" 6) - Rotinas de SPOOL Baan - Impressoras");
                                     ^

"t_principal.c", line 28: error #2165: too few arguments in function call
    putp(tparm(cursor_address, 19, 20)), printf (" 7) - Verifica IP dos servidores S80 - Cluster ");
                                     ^

"t_principal.c", line 29: error #2165: too few arguments in function call
    putp(tparm(cursor_address, 21, 20)), printf (" 8) - Lista NFS /u/sislog/interface/baan_dcl");
                                     ^

"t_principal.c", line 30: error #2165: too few arguments in function call
    putp(tparm(cursor_address, 23, 20)), printf (" 9) - ls -l /u/sislog/interface/baan_dcl");
                                     ^

"t_principal.c", line 31: error #2165: too few arguments in function call
    putp(tparm(cursor_address, 25, 20)), printf ("10) - Monitora evolucao do Importador");
                                     ^

"t_principal.c", line 32: error #2165: too few arguments in function call
    putp(tparm(cursor_address, 29 ,31)), printf ("Escolha a opcao: ===>");
                                     ^

14 errors detected in the compilation of "t_principal.c".


hpxjf61 /tmp # cat t_principal.c
/*
##########################################################################
#                                                                        #
#        DATA:     01/98                                                 #
#                                                                        #
##########################################################################
*/

#include <curses.h>
#include <term.h>
#include <errno.h>
#define clr() system("clear");
main()
{
  clr();
  setupterm(0, 1, 0);
  putp(save_cursor);
  putp(tparm(cursor_address,  2, 30)), printf ("MRS Logistica SA - Rotinas de Baan");
  putp(tparm(cursor_address,  3, 30)), printf ("----------------------------------");

  putp(tparm(cursor_address,  5, 20)), printf (" 0) - Termino deste script");
  putp(tparm(cursor_address,  7, 20)), printf (" 1) - Rotinas BaaN Transferencias e Testes Basicos de Comunicaçao");
  putp(tparm(cursor_address,  9, 20)), printf (" 2) - Jobs BaaN    ");
  putp(tparm(cursor_address,  11,20)), printf (" 3) - Utilizacao da CPU IBM SP-Baan");
  putp(tparm(cursor_address, 13, 20)), printf (" 4) - Ocupacao do Sistema de Arquivos Baan");
  putp(tparm(cursor_address, 15, 20)), printf (" 5) - Status do CLUSTER ");
  putp(tparm(cursor_address, 17, 20)), printf (" 6) - Rotinas de SPOOL Baan - Impressoras");
  putp(tparm(cursor_address, 19, 20)), printf (" 7) - Verifica IP dos servidores S80 - Cluster ");
  putp(tparm(cursor_address, 21, 20)), printf (" 8) - Lista NFS /u/sislog/interface/baan_dcl");
  putp(tparm(cursor_address, 23, 20)), printf (" 9) - ls -l /u/sislog/interface/baan_dcl");
  putp(tparm(cursor_address, 25, 20)), printf ("10) - Monitora evolucao do Importador");
  putp(tparm(cursor_address, 29 ,31)), printf ("Escolha a opcao: ===>");
  reset_shell_mode();
  putp(restore_cursor);
}

 

 

 

Honored Contributor
Steven Schweda
Posts: 9,091
Registered: ‎02-23-2005
Message 2 of 2 (443 Views)

Re: error C compiler "#2165: too few arguments in function call"

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.