[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

popt problemer.



Jeg har en AIX 5.2, hvor getopt_long desværre ikke virker, men jeg har
"popt" til
rådighed, men aldrig brugt det før.

Jeg får to fejl, som jeg ikke kan løses.
Nogle der kan hjælpe ?

============================================
int main(int argc, char *argv[])
{
  char c;
  int i=0;
  poptContext optCon;
  char *udata1;

  struct poptOption optionsTable[]={
    /* long_option,short_option,argument type,variable address,option
tag,docstr,argstr */
    {"udata1",'\0',POPT_ARG_STRING,&udata1,0,""},
    {"udata2",NULL,POPT_ARG_STRING,0,0,""},
    {"udata3",NULL,POPT_ARG_STRING,0,0,""},
    {"udata4",NULL,POPT_ARG_STRING,0,0,""},
    {"udata5",NULL,POPT_ARG_STRING,0,0,""},
    {"udata6",NULL,POPT_ARG_STRING,0,0,""},
    {"udata7",NULL,POPT_ARG_STRING,0,0,""},
    {"udata8",NULL,POPT_ARG_STRING,0,0,""},
    {"udata9",NULL,POPT_ARG_STRING,0,0,""},
    {"udata10",NULL,POPT_ARG_STRING,0,0,""},
    {NULL,0,0,NULL,0}
  };

  optCon=poptGetContext(NULL,argc,argv,optionsTable,0);
  poptFreeContext(optCon);
  /* call header function */
  return EXIT_SUCCESS;
}
~
"iffin.c" 1630 lines, 80491 characters
$ make
        xlc -o iffin iffin.c -lpopt
"iffin.c", line 1613.36: 1506-221 (E) Initializer must be a valid
constant expression.
"iffin.c", line 1626.35: 1506-280 (E) Function argument assignment
between types "const char**" and "char
**" is not allowed.
Target "all" is up to date.
$


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *