Looking for info on GNU GCC G++ functions

Looking for info on GNU GCC G++ functions

Post by David » Mon, 14 Aug 1995 04:00:00



Trying to move from Microsoft C to GNU compiler is proving a little more
akward than I anticipated.. certain functions such as getche() do not work are
not available by the same name under GNU GCC. So, I would sincerely appreciate
getting information 1) about the functions in GNU GCC/ G++ and two about any
books or online docs that would have info about C programming under Linux.

 
 
 

Looking for info on GNU GCC G++ functions

Post by Martin Corneliu » Tue, 15 Aug 1995 04:00:00


IMHO, you need the Gnu-libc reference Manual and the Users
Guide to the GNU c++ library and maybe an introduction
to c-programming on unix systems.
The first two are included in the source distributions
of glibc and libg++
----------------------------------------------------
Martin Cornelius, ZARM-FAB, Uni Bremen 0421-218-4807
Hochschulring / Am Fallturm             28359 BREMEN
----------------------------------------------------

 
 
 

Looking for info on GNU GCC G++ functions

Post by Uwe Bonn » Tue, 15 Aug 1995 04:00:00



> Trying to move from Microsoft C to GNU compiler is proving a little more
> akward than I anticipated.. certain functions such as getche() do not work
> are not available by the same name under GNU GCC. So, I would sincerely
> appreciate getting information 1) about the functions in GNU GCC/ G++ and
> two about any books or online docs that would have info about C
> programming under Linux.  Thanks for any responses..... Please send


Online-docs are the man-pages "man gcc" and the info system "man info".
--

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

 
 
 

Looking for info on GNU GCC G++ functions

Post by Chris Ruprec » Tue, 15 Aug 1995 04:00:00


The problem here is the old question of standards. There are a number
of functions in the Unix environment which have to equilalent in the
DOS world and there should be no function or procedure in DOS which
can not be implemented under Unix (Linux for this matter). To start
with, you might want to check the man pages, section 2 and 3. They
give you most functions and system calls used under Linux. Failing
that ;) you can check the MS-DOS C Compiler to find out what getche()
and all the other 'missing' functions are supposed to do and if need
be, you might have to re-write these functions for Linux. There are a
number of publications such as the AT&T System V Interface Definition
or the X/Open Portability guide.

Hope it helps a bit ...
Chris
--
----------------------------------------+-------------------------------------

   Consultancy Services, Programming,   | Phone (24h):         +27 82 445-3804
  Shareware, Freeware and PD Software   | Snail Mail:             P.O.Box 2485
     PROGRESS, Linux, SCO, Windows      |          Edenvale 1610, South Africa
 Strictly: Jeans, Sneakers, Non-Smoking | URL:       http://www.eurassi.co.za/
----------------------------------------+-------------------------------------

 
 
 

Looking for info on GNU GCC G++ functions

Post by Ulrich Drepp » Tue, 15 Aug 1995 04:00:00


   Trying to move from Microsoft C to GNU compiler is proving a little
   more akward than I anticipated.. certain functions such as getche()
   do not work are not available by the same name under GNU GCC. So, I
   would sincerely appreciate getting information 1) about the
   functions in GNU GCC/ G++ and two about any books or online docs
   that would have info about C programming under Linux.

The question is simply wrong!  First of all the things you asked about
extensions of GCC has nothing to do with functions like getche().  The
later come with the C Library.  If dumb system like MSDOG don't have a
system C Library it is their fault.

Second the question correctly should be: which extension does
*Microsoft* built in their C Library which prevents we from running on
any other system.  GNU/Linux follows the common standards (i.e. ANSI
and POSIX) while Microsoft follows Microsoft standards.

Don't blame the rest of the world for the bullsh*t this M$ concern
produces.

-- Uli
________---------------------------------------------------------------
\      / Ulrich Drepper / Univ. at Karlsruhe, Germany / CS Dept. / IPD


   \/1.3.18 ------------------------------------------ Germany --------

--
-- Uli
________---------------------------------------------------------------
\      / Ulrich Drepper / Univ. at Karlsruhe, Germany / CS Dept. / IPD


   \/1.3.18 ------------------------------------------ Germany --------

 
 
 

Looking for info on GNU GCC G++ functions

Post by Dimitri Maziu » Wed, 16 Aug 1995 04:00:00




>   Trying to move from Microsoft C to GNU compiler is proving a little
>   more akward than I anticipated.. certain functions such as getche()
>   do not work are not available by the same name under GNU GCC. So, I
>   would sincerely appreciate getting information 1) about the
>   functions in GNU GCC/ G++ and two about any books or online docs
>   that would have info about C programming under Linux.

>The question is simply wrong!  First of all the things you asked about
>extensions of GCC has nothing to do with functions like getche().  The
>later come with the C Library.  If dumb system like MSDOG don't have a
>system C Library it is their fault.

>Second the question correctly should be: which extension does
>*Microsoft* built in their C Library which prevents we from running on
>any other system.  GNU/Linux follows the common standards (i.e. ANSI
>and POSIX) while Microsoft follows Microsoft standards.

--

Well, MS is an easy target, isn't it?

My C for PC reference book says that getche() is available in MSC
and TC but not in ANSI C. In other words, it has to be MS DOS-specific
and there's no reason for it to be available on Linux, Mac or Amiga DOS.
You need to check your sources for non-ANSI functions and replace them
with ANSI ones if you want your code to be portable.
BTW, why getche()? What was wrong with getchar()? :-|

Dimitri

---------------------------------------------------------------------------
 All of the above is true in some sense,  false in some sense, meaningless
 in some sense, true and false in some sense, true and meaningless in some
 sense,  false and meaningless  in some sense,  and  true  and  false  and
 meaningless in some sense.
                         -- Sri Syadasti Syadavaktavya Syadasti Syannasti.
---------------------------------------------------------------------------

 
 
 

Looking for info on GNU GCC G++ functions

Post by Shane Bak » Sun, 20 Aug 1995 04:00:00





>    Trying to move from Microsoft C to GNU compiler is proving a little
>    more akward than I anticipated.. certain functions such as getche()
>    do not work are not available by the same name under GNU GCC. So, I
>    would sincerely appreciate getting information 1) about the
>    functions in GNU GCC/ G++ and two about any books or online docs
>    that would have info about C programming under Linux.

> The question is simply wrong!  First of all the things you asked about
> extensions of GCC has nothing to do with functions like getche().  The
> later come with the C Library.  If dumb system like MSDOG don't have a
> system C Library it is their fault.

You statement is empirically *wrong!* since there was no question.
I simply see someone requesting information in a polite manner.  There
was no question about getche(), merely a statement that it is not
available under GCC.  Furthermore, while I don't think that MS-DOS is
a very good OS, I fail to see how one can blame MS-DOS for the fact that
compilers written for it do not use strict ANSI libraries.  In this case
the compiler happens to have been written by the same company but none of
Borland, Watcom, or Symantec produce strictly ANSI libs either.

Quote:

> Second the question correctly should be: which extension does
> *Microsoft* built in their C Library which prevents we from running on
> any other system.  GNU/Linux follows the common standards (i.e. ANSI
> and POSIX) while Microsoft follows Microsoft standards.

Again, there was no question.  Furthermore, I often use Borland C under
DOS/Windows and have made a good living at it for some years now, and
I appreciate the non-standard extensions supplied.  Portability of
various functions is plainly documented and the choice of using
strictly ANSI compliant code is there.

I don't consider myself to be an expert on the subject, but wouldn't
the fact that GNU produces a C++ compiler make it, by definition,
non-ANSI compliant?

Quote:> Don't blame the rest of the world for the bullsh*t this M$ concern
> produces.

Hopefully he won't blame the rest of the posters in this newsgroup for
your bullsh*t rantings.

I apologize to everyone else who has had to read this, I just
get pissed when I see people getting flamed for asking for help.

SBaker

 
 
 

Looking for info on GNU GCC G++ functions

Post by Alan C » Thu, 24 Aug 1995 04:00:00



>    Trying to move from Microsoft C to GNU compiler is proving a little
>    more akward than I anticipated.. certain functions such as getche()
>    do not work are not available by the same name under GNU GCC. So, I
>    would sincerely appreciate getting information 1) about the
>    functions in GNU GCC/ G++ and two about any books or online docs
>    that would have info about C programming under Linux.

getche() and a few other functions are microsoft/borland inventions that
don't appear in any C specification. Have a look in the current Linux
Journal and you'll find some articles on ncurses (screen handling), gpm
(mouse handling) and porting DOS to Linux in general including some keyboard
handling examples for kbhit() and controlling echo.

Alan
--
  ..-----------,,----------------------------,,----------------------------,,

Redistribution of this message via the Microsoft Network is prohibited
<A href="file:/dev/mouse">Click here to disable mouse.</A>

 
 
 

1. bug in select function with GNU GCC 2.5.8 on Solaris 2.4?

I seem to have a problem with the select() function call using GNU GCC
compiler version 2.5.8 on Solaris version 2.4 and would like to know if
anyone else has seen this. In summary, multiple select()s testing for
read availability on a socket behaves oddly.

A simple test illustrates my problem - write a socket program that connects
to a remote-end echo server, writes some data, say 500 bytes, and select()s
and read()s the data back. A single select() and multiple read()s works fine,
but a sequence of select(), read() and then select(), read() again does not
work so well. What happens is that the second select() times after which
the data is indicated available, rather than returning immediately.

1. By using etherfind (on another SunOS machine) I know data is being
transmitted as expected on the network.

2. I have reset the arguments to select() correctly.

3. The same source compiled under SunOS 4.1.3 with GCC 2.5.8 works fine
on any SunOS or Solaris 2.3 machine, but fails likewise on a Solaris 2.4
machine. Hence I suspect Solaris 2.4 is at fault in some way w.r.t. the
select() implementation.

Can someone assist or tell me if I'm being dumb here? Much appreciated.

2. error starting daemon

3. Shared libraries and GNU GCC using gas and gnu ld.

4. it's possible to compress file system transparently to the users?

5. Looking for info-ultrix/info-dec-unix or similar ...

6. Reading files created using VMS 'Backup'

7. function, function...who's got the function?

8. ipchains

9. Help Unix GNU C++, ultoa function

10. ftw(): File Tree Walk library function failes to compile on SCO OS5 w/ gnu.

11. What is the 64 bit stat function call name for C in GNU

12. HELP! PCI functions for GNU C++ ?

13. GNU's getline functions & PERL