Re: libiberty and getopt

2004-04-29 Thread David Fritz
bertrand marquis wrote: Hi again, i just find the solution to my problem in fact it seems that adding: extern int optind; extern char *optarg; solve the problem. The compiler then auto-import these variables and it is working after. This problem doesn't seem to exist under linux but it co

Re: libiberty and getopt

2004-04-29 Thread bertrand marquis
Hi again, i just find the solution to my problem in fact it seems that adding: extern int optind; extern char *optarg; solve the problem. The compiler then auto-import these variables and it is working after. This problem doesn't seem to exist under linux but it could be a difference in ve

libiberty and getopt

2004-04-29 Thread bertrand marquis
Hi, I need to compile a program using libiberty.a and the function getopt_long. When compiling with the flag -liberty my program crash because it don't take the right arguments from the command line. But without libiberty this part work before. i made a small program showing that problem, i