Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Pro*C makes executable very large?
Mike Smith wrote:
> Ed Prochak <edprochak_at_adelphia.net> wrote in message news:<3EF90381.2060106_at_adelphia.net>...
>
>>Mike Smith wrote: >> >>>Hi, I tried some simple code (C++) to try out ProC on hp-ux, >>>and I end up with an executable of size 5 Mb (!) when I compiled the >>>code. >> >>That sounds about right.
>>>Is there anyway to reduce this size (I pretty much linked to all >>>libraries to be able to compile the thing), should I be worried about >>>this size? >>> >>>I am also looking for some sample code in C++ to use Pro*C, is it not >>>possible to create a class myDatbase with different methods connect, >> >>Well it is Pro*C not ProC++. And besides, what methods are you going to put >>for you embedded SELECT statement? You don't want to make a new connection for >>each SELECT statement do you?
That does make more sense than the object partitioning I assumed. And you are right in that it does appear to have about equal trade off as global functions. Why do you have such a fear of global functions?
Actually you make them into a library, separate source file with local variables and functions. C encapsulates code as well as C++ does.
But we are drifting off topic.
-- Ed Prochak running http://www.faqs.org/faqs/running-faq/ netiquette http://www.psg.com/emily.html -- "Two roads diverged in a wood and I I took the one less travelled by and that has made all the difference." robert frostReceived on Sat Jun 28 2003 - 17:28:48 CDT
![]() |
![]() |