It sents me this letter back:
>> This message was created automatically by mail delivery >> software.
>> A message that you sent could not be delivered to one or >> more of its
>> recipients. This is a permanent error. The following
>> address(es) failed:
>> filipski@excite.com
>> SMTP...
>> Means you're trying to make plotview.cpp a program in it's
>> own right.
>> You need to compile both Plot.cpp and PlotView.cpp, then link
>> BOTH object files to make it work.
I've done it. No result. :-(((
>> Does plotview include the plot.h file ?
>> Have you tried to rebuild your project ? (Clears out old
>> references sometimes)
Yes to both.
>> My guess is you have
>> int nn = 0;
>> In the plot.h file
>> What you should have in the plot.h file is
>> extern int nn;
>> And ONLY in plot.cpp
>>...
I'm defining global variables zz and nn in Plot.h, modyfying them in plot.cpp and using in The PlotView.cpp. And when compiling it shows that:
>> The PlotView.obj : error LNK2005: "int nn" (?nn@@3HA)
>> already defined in Plot.obj
>> The PlotView.obj : error LNK2005: "int...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.