New Cygwin installation

2004-03-17 Thread Frank Wagner
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/virenschutzCompiler: 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 -IC:/cygwin/usr/include  
-IC:/cygwin/usr/include/c++  -IC:/cygwin/usr/include/c++/3.3.1/backward  
-IC:/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/

RE: New Cygwin installation

2004-03-17 Thread Frank Wagner
Hi Dave,

first thanks for your fast reply.
I replaced the #include ostrstram with #includesstream
but the type ostrstream type is still unknown.
By commenting out the following lines
//  ostrstream stmPort;

//stmPort  /dev/com  devnum  :  ends;
//  stmPort  /dev/com  devnum  ends;
//  schnittstelle = stmPort.str();

and replacing it with:
schnittstelle = /dev/com2;

my application compiles very well.
So must I throw away all my old books about C++ or what can I do to compile
my 
older programs like they are?

Greetings

Frank

  -Original Message-
  From: cygwin-owner On Behalf Of Frank Wagner
  Sent: 17 March 2004 09:03
 
  Hello,
 
   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.
 
   Never heard of it.
 
  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.
 
   The default search paths should be set up fine already, as long as  you
 make sure to use gcc.exe for compiling C and g++.exe for compiling C++
 files.  The only directories you should need to include in the dev
 environment are those with your own application's headers.
 
  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 
  C++ header
  for C++ includes, or sstream instead of the deprecated 
  header strstream.h. To disable this warning use -Wno-deprecated.
  
 
   Doesn't seem mysterious to me, but then again English is my first
 language.  It's telling you about the fact that the C++ standards
 committee
 decided to change all the header file names a while ago, and the original
 header names are all considered out-of-date now.
 
  The project I tried to compile compiled successfully with the 
  old installation of cygwin.
 
   If you've been making your own include paths in the dev environment by
 hand, you might well have got some directories in the wrong order and
 caused
 this sort of error.  OTOH something could have changed in the C++ headers
 in
 a backwardly incompatible way, and the warning is to let you know to
 modify
 your code.  Let's take a look at your errors:
 
 snip
 g++.exe -D__DEBUG__ -c cpx_mon.cpp -o cpx_mon.o -IC:/cygwin/usr/include
 -IC:/cygwin/usr/include/c++ 
 -IC:/cygwin/usr/include/c++/3.3.1/backward
 -IC:/work/Sonstiges/priv/projekte/Software/include   -ansi -g3
 snip
 
   That's where you've tried to put your own include paths in there. 
 You've
 most likely got them in the wrong order.  The backward compatibility dir
 probably ought to be very last in the search order, but leave it to
 g++.exe,
 which knows what order to put them in already - take a look at the output
 from g++ -print-search-dirs.  Take out all the include dirs except for
 your own C:/work/Sonstiges/. directory.
 
 snip
 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:
 snip
 
   Possibly your posix_terminal.h has a #include strstream.h that
 should
 be changed into #include sstream, as the warning suggests; or perhaps
 your posix_terminal.h is correct, but the wrong header file is being found
 because you got the search path order messed up.  The problem should
 disappear once you sort that out.
 
 
 cheers, 
   DaveK
 -- 
 Can't think of a witty .sigline today
 
 
 
 
 --
 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/
 

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


--
Unsubscribe info:  http://cygwin.com/ml

funktion itoa

2003-07-30 Thread Frank Wagner
Hello,

I need to convert a integer to a string and in this case I want to use the
itoa funktion call.
I found a description of this funktion that explains:

char *  itoa ( int value, char * buffer, int radix ); 

Wich is defined in stdlib.h.

When I try to compile I get the follwing error:  implicit declaration of
function `int itoa(...)'

My function call looks like: itoa(B-anzahl, menge, 10);

When I look into stdlib.h will find the following line:

int _EXFUN(atoi,(const char *__nptr));

Here it is defined with a int as return value.

What is my description wrong and how must I use this funktion?

Thanks a lot in advance

Frank

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


--
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/



Warning Message _WinMainCRTStartup

2002-10-16 Thread Frank Wagner

Hello,

I compiled FLTK under cygwin and got the following warning multiple times.

/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld
C:\usr\i686-pc-cygwin\bin\ld
[Warning] cannot find entry symbol _WinMainCRTStartup; defaulting to
00401000

FLTK is a GUI library for different platforms.
In spite of these warnings the compilation was successfull and it's possible
to use these GUI library.
But if I compile a own program with this library I also got these warning in
my compiler output.

What did I wrong and how can I avoid this?

Thanks al lot

Frank

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Devicename conventions

2002-04-03 Thread Frank Wagner

Hello,

does someone know wether there exists a document where I can find the
devicename differences between windows and Linux/Unix.

For example:
To program the serial port with Cygwin the devicename for Windows must be
/dev/com1 and on Linux /dev/ttyS0.

So I want to know which names the other devices should have for example the
keybord?

Is there a document where I can read this or doesn't this make any sense?
Can I also try the Linux conventions?

Thanks in advance

Frank

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Error after ./configure

2002-01-11 Thread Frank Wagner

Hello,

I tried to build insight5.1 on a WinNT 4.0 maschine.
After the command ./configure I got the following messages:

Configuring for a i686-pc-cygwin host.
Created Makefile in /home/WagnerF/insight using mf-frag
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: 
cannot find -luser32
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -02   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

I looked for the file user32 and found a user32.def in
/usr/src/w32api-1.1-1/lib

So what should I do that the user32.def will be found?
What happens with the environment variable CC this variable is not set after
installation.

Thanks in advance

Frank

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/