Click to See Complete Forum and Search --> : quick lookup of function prototypes


theNerd
02-19-2001, 08:20 AM
Hey,
I've recently been having trouble with getting my function calls in C++ just right. I've been using g++ to compile my code but, anytime that I don't call a function with the proper params it just throws back an error: no matching function definition (or something like that)
So the question is: is there any quick way to look up the proper forms of a function without having to trawl through the header files?

TheLinuxDuck
02-19-2001, 09:51 AM
Originally posted by theNerd:
is there any quick way to look up the proper forms of a function without having to trawl through the header files?

Most functions, I have found, have man pages. Just try man function-name. :)

theNerd
02-20-2001, 05:28 AM
Thanks,
I had been driving myself craZy trying to match them up, it involved a lot of voodoo programming.

TheLinuxDuck
02-20-2001, 10:51 AM
Originally posted by theNerd:
Thanks,
I had been driving myself craZy trying to match them up, it involved a lot of voodoo programming.

Also, depending on the situation, a good reference book would be advisable. :) A good handy resource like that can be very invaluable.