[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] c++ & mem
Hi ya Alex.
The memory problem is now sorted by adding in the lilo that the memory is
128M, because when the free command was called it said that it only had 65M.
Not sure why it did not realise that there was more?, but anyway, also that
c/c++ is also sorted since I was not using the working directory. doh!.
Thanks
Ian
----- Original Message -----
From: "Alex Hudson" <home [at] alexhudson.com>
To: "Sheflug" <sheflug [at] vuw.ac.nz>
Sent: Thursday, December 07, 2000 7:52 PM
Subject: Re: [Sheflug] c++ & mem
> >Hi there, I am using Mandrake v7.1.
> >I have two hopefully easy questions:-
> >1). when I compile a c++ file e.g.
> >#include <stdio.h>
> >
> >int main ()
> >{
> >printf("hi there/n");
> >return 0;
> >}
>
> Nope, sorry, that's C ;) C++ is...
>
> #include <iostream.h>
>
> int main()
> {
> cout << "Hi there!\n";
> return (0);
> }
>
> . and even that's "C-like" C++ ;)
>
> >by the command line
> >g++ test.cpp
>
> Try renaming test.cpp to test.c. Then, (assuming gmake), type 'make test'.
>
> >2). Also I have 128Mbytes of RAM, but where do you tell Linux that I have
this memory, since it says >that it is 65Mbytes?
>
> At lilo, instead of typing 'linux' type 'linux mem=128'. But, are you
*positive* it thinks you have 65Mb?? That doesn't sound likely to me! Post
the output of 'free' if you are able.
>
> Cheers,
>
> Alex.
>
>
> ---------------------------------------------------------------------
> Sheffield Linux User's Group - http://www.sheflug.co.uk
> To unsubscribe from this list send mail to
> - <sheflug-request [at] vuw.ac.nz> - with the word
> "unsubscribe" in the body of the message.
>
> GNU the choice of a complete generation.
>
>
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.