Re: Code generation questions
Jonathan Riddell <[email protected]> Sat, 14 May 2005 22:40:15 +0100
| Newsgroups | gmane.linux.umbrello.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Mar 22, 2005 at 08:16:29AM -0500, Huntress Gary B NPRI wrote: > > Hi, > > I'm a new user of Umbrello, and I've been making several simple class > diagrams just to get familiar with the process. I've done a generic > "shape" class and derived "circle" and "triangle" classes. I'm > primarily interested in c++ code generation. This seemed to go ok > except for two issues: > > 1) The code generator writes a .cpp and .h file for each class as > expected. However, the class cannot be compiled (gcc -c shape.cpp > for example) because shape.cpp does not have a directive #include > "shape.h". Is this default behavior? I can see no code generation > options to fix this. I realize I can manually add the include but I'm > sure that's not right. Works for me, I get #include "foo.h" in the generated .cpp file. > 2) I wrote some test methods that have in/out parameters of int or > double (typically). In the generated code there was an include for > #include "double.h" or #include "int.h".I was unable to find, or > generate these datatype headers. A simple "touch double.h" fixes that > with an empty file, but again, that doesn't seem right. I do get int.h and int.cpp generated, but almost certainly shouldn't do. Please report to bugs.kde.org. Jonathan Riddell ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click