Hello,
I updated my old cygwin installation with a newer one this week,
I use cygwin in combination with a grafical development environment called
Dev-Cpp.
In the old installation it was sufficient to set up the c-include paht with
c:\cygwin\usr\include
and the c++-includes with c:\cygwin\usr\include and
c:\cygwin\usr\include\c++.
But now there are a lot more directories so called ..\c++\3.3.1\backward and
..\c++\3.3.1\i686-pc-cygwin.
So I want to know wich directories I have to enlist in the include section
of my dev environment.
By now I have a misterious warning:
>>2 C:\usr\include\c++\3.3.1\backward\backward_warning.h:32
#warning This file includes at least one deprecated or antiquated header.
Please consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h> header
for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
<<
The project I tried to compile compiled successfully with the old
installation of cygwin.
for your referenz I will include my complete error messages and my include
part of the project.
I hope somebody will help me.
Thanks in advance
Frank
--
+++ NEU bei GMX und erstmalig in Deutschland: T�V-gepr�fter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
Compiler: Cygwin System
Building Makefile: "C:\work\Projekte\Software\CPx_Monitor\Makefile.win"
F�hrt make clean aus
rm -f cpx_mon.o fw_cronos.o CPx_Monitor.exe
g++.exe -D__DEBUG__ -c cpx_mon.cpp -o cpx_mon.o -I"C:/cygwin/usr/include"
-I"C:/cygwin/usr/include/c++" -I"C:/cygwin/usr/include/c++/3.3.1/backward"
-I"C:/work/Sonstiges/priv/projekte/Software/include" -ansi -g3
In file included from /usr/include/c++/3.3.1/backward/strstream:51,
from
C:/work/Sonstiges/priv/projekte/Software/include/posix_terminal.h:21,
from cpx_mon.h:25,
from cpx_mon.cpp:9:
/usr/include/c++/3.3.1/backward/backward_warning.h:32:2: warning: #warning This file
includes at least one deprecated or antiquated header. Please consider using one of
the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include
substituting the <X> header for the <X.h> header for C++ includes, or <sstream>
instead of the deprecated header <strstream.h>. To disable this warning use
-Wno-deprecated.
In file included from cpx_mon.cpp:9:
cpx_mon.h:37: error: 'ofstream' is used as a type, but is not defined as a
type.
cpx_mon.h:47: error: `string' was not declared in this scope
cpx_mon.h:47: error: syntax error before `)' token
cpx_mon.cpp: In function `int main()':
cpx_mon.cpp:70: error: `cout' undeclared (first use this function)
cpx_mon.cpp:70: error: (Each undeclared identifier is reported only once for
each function it appears in.)
cpx_mon.cpp:70: error: `flush' undeclared (first use this function)
cpx_mon.cpp:74: error: `endl' undeclared (first use this function)
cpx_mon.cpp: At global scope:
cpx_mon.cpp:274: error: `string' was not declared in this scope
cpx_mon.cpp:274: error: syntax error before `)' token
cpx_mon.cpp: In member function `void cpx_protokoll::openfile(...)':
cpx_mon.cpp:276: error: `outfile' undeclared (first use this function)
cpx_mon.cpp:276: error: `filename' undeclared (first use this function)
cpx_mon.cpp:276: error: `ofstream' undeclared (first use this function)
cpx_mon.cpp:276: error: syntax error before `::' token
make: *** [cpx_mon.o] Error 1
Ausf�hrung beendet#define PRIADC_GAIN 2.500
#define _7714_GAIN 2.500
//#define 24BitLSB 1.49e-7
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
//#include <strstream>
#include <fstream>
#include <sys/time.h>
#include <ncurses.h>
#include <posix_terminal.h>
#include "fw_cronos.h"
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/