[wplug] Compile Errors

mike mschenck at adelphia.net
Mon Jan 15 10:50:25 EST 2001


try the ; at the end of class definition, but did you try it in linux  too?
maybe there probs with visual c++'s configuration....
----- Original Message -----
From: "Brad Hoover" <b_hoovs at yahoo.com>
To: <wplug at wplug.org>
Sent: Sunday, January 14, 2001 9:43 PM
Subject: [wplug] Compile Errors


> Hello,
>
> As Mike asked for, here are the errors I get when
> compiling:
>
> Compiling...
> main.cpp
> C:\PROGRAM FILES\MICROSOFT VISUAL
> STUDIO\MyProjects\person\main.cpp(6) : error C2628:
> 'person' followed by 'int' is illegal (did you forget
> a ';'?)
> C:\PROGRAM FILES\MICROSOFT VISUAL
> STUDIO\MyProjects\person\main.cpp(10) : error C2664:
> 'setname' : cannot convert parameter 1 from 'char [2]'
> to 'char'
>         This conversion requires a reinterpret_cast, a
> C-style cast or function-style cast
> C:\PROGRAM FILES\MICROSOFT VISUAL
> STUDIO\MyProjects\person\main.cpp(15) : error C2664:
> 'setname' : cannot convert parameter 1 from 'char [2]'
> to 'char'
>         This conversion requires a reinterpret_cast, a
> C-style cast or function-style cast
> C:\PROGRAM FILES\MICROSOFT VISUAL
> STUDIO\MyProjects\person\main.cpp(20) : error C2664:
> '__thiscall person::person(const class person &)' :
> cannot convert parameter 1 from 'const int' to 'const
> class person &'
>         Reason: cannot convert from 'const int' to
> 'const class person'
>         No constructor could take the source type, or
> constructor overload resolution was ambiguous
> Error executing cl.exe.
>
> main.obj - 4 error(s), 0 warning(s)
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug




More information about the wplug mailing list