bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Included files order


From: Roee Friedman
Subject: Included files order
Date: Fri, 03 Jan 2003 10:10:17 +0200

Hello!
I have seen the problem discussed about a year ago, but it still not fixed.
I am using CC++ 2 (1.0.7).
It seems that still the inclusion of <fstream> or <iostream> before 
<cc++/socket.h> breaks the compilation with error:

In file included from /usr/local/include/cc++/socket.h:54,
                 from MailServer.h:3,
                 from mailclin.h:10,
                 from mailclin.cpp:1:
/usr/local/include/cc++/thread.h:320: syntax error before `;'

the order of inclusion is:

#include <fstream>
#include <iostream>
#include <cstdio>
#include <new>

#include "MailServer.h"  // <-- This file includes <cc++/socket.h>

In order to compile the project, I either have to move the last include to be 
the first or include <cc++/socket.h> first.

Roee





reply via email to

[Prev in Thread] Current Thread [Next in Thread]