-------------------------------------------------- From: "Qianqian Fang" > After putting -lgw32c -lole32 at the end of the command line, > the linking error for drand48_r has gone. However, there are > still 10s of unresolved references error for stderr, stdin > and stdout. Are there anything else I overlooked? > Perhaps an include is omitted or some includes are in the wrong order, perhaps a programming error or whatever.
In such a case you can try several types of bug searches. The most general one is: Trim your program to the smallest possible one that exhibits this behavior, compare it with the next trimmed one (thus the first one to not have this behavior), compare them, and most likely you will have found the error. A more heuristic one would be to search where stdin and the like are used in your program, find in which include files they are defined, and try to find the bug by looking at the code, changing it e.g. by putting the code with stdin between comments, etc. If you don't find it in this way, ultimately you will probably end up with the same smallest programs as described in the previous paragraph. --kz ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users