CompuServe Messages

#prototype question

    08-Nov-92 17:31:15
Fm: Doug Walker 71165,2274
To: Jeff Pratt 76057,3645
Hmmm… I just typed in basically the same program you just typed in and got the right answer with NOMATH and each of the MATH options. Can you post or send me a compilable example that illustrates the problem? Include the options used, including the SCOPTIONS file, and any source code. It might be easier to use the PPONLY option to generated preprocessed output, then just upload that file. (Actually, sometimes the preprocessed output itself has clues as to what is going on.) One other thing to try: pass the result of the function to a function that takes "char *", and see what type the error message prints out. If it says "expecting char *, found double" then at least the compiler knows what is going on, and it's a cross- reference bug. If it says something else, then something non- obvious is happening. You're not #defining 'double' to 'int' or anything like that, are you <g>? –Doug