CompuServe Thread

#Al's C++ window.c

4 messages in this thread
#24374From: Michael YardMar 6, 1990 2:43 AM
Having a problem with Al Stevens window.c, from last September issue. (Not sure how, but I have 2 August issues & no Sept.) IAC, I am a brand new C++ initiate, and cannot get window.c to compile using Zortech C++ v. 2.0. I keep getting a "Syntax error: not found or ambiguous reference to function 'cursor'" in 3 lines of the window module. Please feel free to jump right in and tell me what I'm doing that's dumb – a lesson in humility would be welcome at this point if it will shortcut my learning curve. Thanks.
#24377From: Al StevensMar 6, 1990 9:36 AM
Chances are the code from that issue doesn't work with Zortech 2.0. I developed it with 1.7 back when I was first exploring C++, so it might not be (probably isn't) 100% C++. Al Stevens
#24386From: Michael YardMar 6, 1990 6:35 PM
> Chances are the code from that issue doesn't work with Zortech 2.0. I > developed it with 1.7 back when I was first exploring C++, so it might not be > (probably isn't) 100% C++. Thanks for the response, though disappointing. Oh well, making modifications is often a good pathway to learning. BTW, I enjoy your columns and your ability to communicate clearly.
#24566From: Nick HallMar 24, 1990 10:59 PM
When you get the ambiguous reference to a function, it usually means that you passed the wrong parameters to it. In looking at your calls to cursor, make sure you are passing the right types. If cursor(…) is not prototyped, The first call to cursor sets the types of parameters to the function. I've had a million errors like the one you're talking about & checking calling types seems to solve them.