Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template members Pin
Joaquín M López Muñoz8-Apr-02 10:25
Joaquín M López Muñoz8-Apr-02 10:25 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 4:53
Jamie Hale9-Apr-02 4:53 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 5:05
Joaquín M López Muñoz9-Apr-02 5:05 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 5:17
Jamie Hale9-Apr-02 5:17 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 5:41
Joaquín M López Muñoz9-Apr-02 5:41 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 5:45
Jamie Hale9-Apr-02 5:45 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 6:12
Joaquín M López Muñoz9-Apr-02 6:12 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 6:38
Jamie Hale9-Apr-02 6:38 
Joaquín M López Muñoz wrote:
The #include directives are a liitle convoluted but seem right af first sight.

The includes are definitely convoluted. We had some serious compilation time problems (like it was always recompiliing and each time took 5 minutes or so). So I read that Large-Scale C++ Design (Lakos - great book) and finally learned how it all worked.

The trouble is, part of this project was written by a C programmer and another part by a math grad just out of school. OO is new to them and so they don't follow the whole dependancy thing. And I didn't have time to explain it all.

So I ripped out all of the #includes, and hit F7. Added the first #include or forward definition (whichever was necessary) and then hit F7 again. 250 files worth. Smile | :) Took a while, but finally things compile at a reasonable speed and the only stuff that needs a "rebuild-all" frequently is the new math grad's stuff. Smile | :)

Joaquín M López Muñoz wrote:
Could it be some of your safeguard #ifndefs are duplicated in your header files?

I don't think this is a problem but I'll check. I religiously only use one #ifndef per header and none in the .cpp files except MS's debug new stuff.

J
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 6:15
Joaquín M López Muñoz9-Apr-02 6:15 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 6:39
Jamie Hale9-Apr-02 6:39 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 7:07
Joaquín M López Muñoz9-Apr-02 7:07 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 7:34
Jamie Hale9-Apr-02 7:34 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 7:44
Joaquín M López Muñoz9-Apr-02 7:44 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 6:18
Jamie Hale9-Apr-02 6:18 
GeneralRe: template members Pin
CodeGuy9-Apr-02 6:28
CodeGuy9-Apr-02 6:28 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 6:44
Jamie Hale9-Apr-02 6:44 
GeneralRe: template members Pin
Christian Graus8-Apr-02 10:26
protectorChristian Graus8-Apr-02 10:26 
GeneralRe: template members Pin
Tim Smith8-Apr-02 10:42
Tim Smith8-Apr-02 10:42 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 4:57
Jamie Hale9-Apr-02 4:57 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 4:55
Jamie Hale9-Apr-02 4:55 
GeneralSaving Icons Pin
Shog98-Apr-02 9:00
sitebuilderShog98-Apr-02 9:00 
GeneralRe: Saving Icons Pin
Roman Nurik8-Apr-02 9:57
Roman Nurik8-Apr-02 9:57 
GeneralRe: Saving Icons Pin
Shog98-Apr-02 10:23
sitebuilderShog98-Apr-02 10:23 
GeneralPopup Menu Pin
icerapper@k.ro8-Apr-02 8:23
icerapper@k.ro8-Apr-02 8:23 
GeneralRe: Popup Menu Pin
Rickard Andersson208-Apr-02 8:38
Rickard Andersson208-Apr-02 8:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.