Need C++ help.
2 messages in this thread
Doug,
I have a few questions about using SAS C++ 6.50.
First I cloned build.info and added a tooltype of "ALL_PROTOS", without
the quotes, to run smake to generate that target in the default makefile.
But when I double click on it, smake gives an error of "smk: cannot open
makefile". If I change the tootype to "-f smakefile ALL_PROTOS" it works
but the documents imply that I shouldn't have to do that. Is there a bug
there?
Second I have about 4 Meg of available free memory on my system after I
boot. When I compile some C++ programs memory has been getting tight.
Are my only options to:
– Free up a little more memory. No big blocks available other than
killing DOpus, NOT an option.
– Buy more memory, what are the recomendations as to, minimum size, nice
size…
– Play with the MemorySize option. Again, I didn't see any recomendations
in the manual. The default is large, but about how much memory do I need
to use large?
Third, is there no automatic way to get prototypes from mixed C and C++
files? I really, REALLY miss being able to do a GenProto. I hope
GenProto works for C++ files in the next upgrade, or better an upcoming
patch. I know the next patch wouldn't have it. 🙁
Thanks for your help.
//
\X/ Amiga or bust! Gary Bonnstetter, Bonnsoft
Hi Gerald,
I don't know the answer to your smake question; I suggest contacting
technical support via EMITS (see Chapter 3 of your User's Guide, Volume I).
To free up more memory for C++, assign T: to your hard disk somewhere.
C++ uses T: for the intermediate ..c file, which can get pretty big if you
#include a lot of stuff. Assigning T: to a hard drive will reduce this
memory usage.
There is no hard and fast rule for what level to set MEMSIZE to.
Basically, if you are running out of memory, it gives you a way to tell the
compiler to use less. It's used a lot more by the C compiler than by the C++
translator, so it probably won't help your C++ memory problem that much.
There is no utility provided that generates prototypes from C++ source.
There are freeware/shareware utilities that do this, I *think*. It's
definately been requested for a future release, but so have lots of other
things, so I can't promise whether it will make it next time or not. I'll do
the best I can to get it in.
–Doug