[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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.