POV-Ray : Newsgroups : povray.off-topic : C++ question... : Re: C++ question... Server Time
5 Sep 2024 17:20:10 EDT (-0400)
  Re: C++ question...  
From: Fredrik Eriksson
Date: 12 Jun 2009 14:50:58
Message: <op.uvfda8sa7bxctx@e6600>
On Fri, 12 Jun 2009 20:22:16 +0200, Darren New <dne### [at] sanrrcom> wrote:
> Isn't it legal to put a class declaration in the same .cpp file where  
> you define its member functions and the main() that's the only routine  
> that uses it?

You can put the entire program in a single file if you want.



> When I did that, I got errors about not being able to find the vtable  
> for the class.

Possibly some internal compiler problem (which might be triggered by a  
syntactical problem in your code).



> Is #include supposed to work just like a textual include?

Yes.



-- 
FE


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.