LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   need help with GNU CC (GCC) compiler (http://www.linuxquestions.org/questions/programming-9/need-help-with-gnu-cc-gcc-compiler-756220/)

smeezekitty 09-18-2009 01:30 PM

need help with GNU CC (GCC) compiler
 
where can i get a function refrence for the GNU CC compiler
such as turbo c++ has a help file
and MSVC has MSDN online
but GCC has no refrence
any ideas?
thnx

johnsfine 09-18-2009 02:15 PM

Unlike MSVC and Turbo C++, GCC has much less focus on library functions that are not part of the standard C and C++ libraries.

So you should look first to documentation of the standard C and C++ libraries, such as at
http://www.cplusplus.com/reference/clibrary/

GNU also has many extra libraries (multi precision math etc.) that are not part of the C and C++ standards but even though they may be developed and tested with and for use with GCC, they are not documented as part of GCC (because they aren't part of GCC). Look to the documentation for the specific extra libraries you want to use.

smeezekitty 09-18-2009 05:51 PM

Quote:

Originally Posted by johnsfine (Post 3688829)
Unlike MSVC and Turbo C++, GCC has much less focus on library functions that are not part of the standard C and C++ libraries.

So you should look first to documentation of the standard C and C++ libraries, such as at
http://www.cplusplus.com/reference/clibrary/

this is a c++ refrence
is it the same in C because i am trying to avoid the bulk
of C++ except for io functions (iostream and fstream)

smeezekitty 09-18-2009 05:59 PM

i just noticed something
is that i Google C library functions and non of them include write() and read()
i know i dont really need them because i can use the C++ fstream
i just want to know why these are not documented because
they are in evrey C library i have evr seen

carbonfiber 09-20-2009 02:39 PM

smeezekitty: It is because read and write are not part of the C standard library.

smeezekitty 09-21-2009 12:47 AM

Quote:

Originally Posted by carbonfiber (Post 3690800)
smeezekitty: It is because read and write are not part of the C standard library.

then why does the open group standards website list it as standard

carbonfiber 09-21-2009 03:24 AM

Because read() are write() are part of the POSIX standard.


All times are GMT -5. The time now is 08:51 AM.