Message-ID: <3651B9FA.A463989E@gmx.net> Date: Tue, 17 Nov 1998 19:01:30 +0100 From: Roland Schulz X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: de,en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: compiling math equations References: <36508BF9 DOT A89B5B7F AT gmx DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.140.8.77 X-Trace: 17 Nov 1998 19:04:24 +0100, 62.140.8.77 Lines: 68 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Bjorn De Meyer wrote: > On Mon, 16 Nov 1998, Roland Schulz wrote: > > > Hey! > > I'm working on a simulating program and since I want it to be real fast, > > I want to compile the equations into a library and then link it together > > with my program. I got a few questions about libraries and related > > things: > > 1. Is it possible to change the library (put the new equation in it) and > > use the new library without a rebuilt (maybe with dynamic linking)? > Yes. > There are packages like dlx, and the likes wich enable dll-like > stuff. However, I think that for your problem, you will probably not need > such packages as they may be more work than simply recompiling and > updating a library. And maybe you should think of building an > equation-interpreter using FLEX and BISON, so you don't have to > hard-code in new equations.. > > > 2. Is it possible to generate a library which can be linked with Visual > > C++ (sorry but I would like to program it for Windows the easy way)? > I'd say no. What with the differences in format between DJGPP's .a files > and window's .lib format. > > 3. If I'm going to distribute my program one day is it legal to include > > the following files: ar.exe, cc1, djgpp.env, gcc.exe, coping and math.h > > by itself or do I have to include any other files? > What will your users need ar.exe, cc1, djgpp.env, gcc and math.h for? > If they are end-users they will not be expected to do compiling by > themselves, while other DJGPP programmers will have them. And for copying, > you can redistribute this with any of your progarms, IF you want your > program to be GPL'ed. > > 4. Is there any way to reduce the size of the files I have to include to > > compile REAL simple functions (math equations) even more with not to > > much effort (I don't want to program a whole new compiler)? > Eh, if you want to reduce your executable size, use UPX or DJP, and STRIP > your executables. But I don't really undersatnd what you are actually > aiming at... > > > > > Thanx a lot for your help in advance!! > > > Hope this helps. Have fun :) ! > > Roland Schulz > > > > > > > > > > Bjorn De Meyer. > IA #i^4 > Homepage: http://studwww.rug.ac.be/~bgdmeyer > E-mail: bjorn DOT demeyer AT rug DOT ac DOT be > Licentiate Chemistry. > Coordinator of the "Tales of Artah: First Sword" CRPG project. > > "I've shaven. I'm happy. I have no religion. Don't pray for me." > Illusion of Gaia 2 > > > > > > >