OVH Cloud OVH Cloud

Conversion de Zortech C++ makefile vers Borland C++

3 réponses
Avatar
Maldona8
Je suis tout noveau en C++. Je avait trouve en Internet un vieux source code
en C++ pour faire de calculs de réactions biochimiques (logiciel Gepasi
datée 1992). Le code était développait avec Zortech C++. Mais j'ai une
petite problème. J'arrive pas a faire le compiling. Je ne sais pas comme
changer le contenu de l'archive makefile pour compiler ce code avec Borland
C++ ou bien M$ VC. Pouvez vous m'aider SVP ? J'ai pas encore reussi a
trouver l'compilateur Zortech. Je pas de documentation por Zortech non plus.

Merci bien pour votres reponses!

Voila le code de makefile original :



# makefile for GEPASI - Zortech C

CFLAGS= -DMSDOS -D_ZTC -DMEM_DEBUG -mx

.c.obj:

ztc -c $(CFLAGS) $*

OBJECTS = gepmain.obj getall.obj globvar.obj metconan.obj metcvars.obj \

newton.obj pmu.obj r250.obj datab.obj daxpy.obj ddot.obj dgefa.obj \

dgesl.obj dscal.obj idamax.obj lsoda.obj kinetics.obj kinetic2.obj
matrix.obj \

rates.obj dynamic.obj gepout.obj gauss.obj gaussvar.obj mem.obj

gepasizt: $(OBJECTS)

ztc $(OBJECTS) $(CFLAGS_)

clean:

rm *.obj

gepmain.obj: gepmain.c pmu.h globals.h globvar.h except.c r250.h \

matrix.h kinetics.h rates.h gauss.h newton.h metconan.h lsoda.h dynamic.h \

datab.h getall.h gepout.h

getall.obj: getall.c globals.h globvar.h datab.h newton.h strtbl.h \

gauss.h kinetics.h pmu.h

gepout.obj: gepout.c globals.h globvar.h datab.h newton.h metconan.h \

lsoda.h pmu.h

datab.obj: datab.c globals.h globvar.h lsoda.h strtbl.h

globvar.obj: globvar.c globals.h

metcvars.obj: metcvars.c globals.h

gaussvar.obj: gaussvar.c globals.h

matrix.obj: matrix.c globals.h globvar.h

pmu.obj: pmu.c

r250.obj: r250.c r250.h

daxpy.obj: daxpy.c

ddot.obj: ddot.c

dgefa.obj: dgefa.c

dgesl.obj: dgesl.c

dscal.obj: dscal.c

idamax.obj: idamax.c

lsoda.obj: lsoda.c

metconan.obj: metconan.c globals.h globvar.h matrix.h datab.h

kinetics.obj: kinetics.c globals.h globvar.h datab.h

kinetic2.obj: kinetic2.c globals.h globvar.h datab.h

rates.obj: rates.c globals.h globvar.h datab.h

dynamic.obj: dynamic.c globals.h lsoda.h globvar.h rates.h datab.h pmu.h

gauss.obj: gauss.c globals.h globvar.h

newton.obj: newton.c globals.h globvar.h matrix.h rates.h datab.h

mem.obj: mem.c mem.h



#$(FILE) : file.h file.c

# ztc -c $(CFLAGS) -DA$* file -o$*.obj

3 réponses

Avatar
Jean-Marc Bourguet
"Maldona8" writes:

Je suis tout noveau en C++. Je avait trouve en Internet un vieux source code
en C++ pour faire de calculs de réactions biochimiques (logiciel Gepasi
datée 1992). Le code était développait avec Zortech C++. Mais j'ai une
petite problème. J'arrive pas a faire le compiling. Je ne sais pas comme
changer le contenu de l'archive makefile pour compiler ce code avec Borland
C++ ou bien M$ VC. Pouvez vous m'aider SVP ? J'ai pas encore reussi a
trouver l'compilateur Zortech. Je pas de documentation por Zortech non plus.


Si je ne me trompe pas, voir http://digitalmars.com/

Si c'est pas du C++ et pas du C, peut-etre est-ce que les autres
compilateurs C++ que tu as essaye ont des difficulte a considere des
fichiers ayant une extension .c comme du c++?

A+

--
Jean-Marc
FAQ de fclc++: http://www.cmla.ens-cachan.fr/~dosreis/C++/FAQ
C++ FAQ Lite en VF: http://www.ifrance.com/jlecomte/c++/c++-faq-lite/index.html
Site de usenet-fr: http://www.usenet-fr.news.eu.org

Avatar
Maldona8
je crois que le code est vraiment c++
le problem qui je trouve cest plutot parce que
je suis tout un plus nul avec c (je viens de commencer avec)

je ai un compilateur c++ (un tres vieux borland c++ 3.1 pour windows 3.1)
et en fait, le programme a etait develope pour c++ de Zortech
a plus pres ver le mem temp de sorie de borland c++ 3.1
Je trouve cette message attache a source code


The following makefiles are available:

gepasi.mak Quick C/Win 1.0, simulation engine, MS-DOS
gwsim.mak Quick C/Win 1.0, Simulation, MS-Windows
gwtop.mak Quick C/Win 1.0, Topology, MS-Windows
gepasi.hpj MS Help Compiler, Help, MS-Windows

these makefiles require that the source code files are in a directory
with the following path: c:sourcegepasi . If you want to change
this
you are responsible for the alterations in these make (project)
files.

Makefile.unx cc, simulation engine, unix

this makefile compiles the simualtion engine with the standard (?) C
compiler, cc. It has only been tested in a DEC 5830 running Ultrix
4.2.
Before using it, it should be renamed to 'Makefile'




"Jean-Marc Bourguet" a écrit dans le message de news:

"Maldona8" writes:

Je suis tout noveau en C++. Je avait trouve en Internet un vieux source
code
en C++ pour faire de calculs de réactions biochimiques (logiciel Gepasi
datée 1992). Le code était développait avec Zortech C++. Mais j'ai une
petite problème. J'arrive pas a faire le compiling. Je ne sais pas comme
changer le contenu de l'archive makefile pour compiler ce code avec
Borland
C++ ou bien M$ VC. Pouvez vous m'aider SVP ? J'ai pas encore reussi a
trouver l'compilateur Zortech. Je pas de documentation por Zortech non
plus.


Si je ne me trompe pas, voir http://digitalmars.com/

Si c'est pas du C++ et pas du C, peut-etre est-ce que les autres
compilateurs C++ que tu as essaye ont des difficulte a considere des
fichiers ayant une extension .c comme du c++?

A+

--
Jean-Marc
FAQ de fclc++: http://www.cmla.ens-cachan.fr/~dosreis/C++/FAQ
C++ FAQ Lite en VF:
http://www.ifrance.com/jlecomte/c++/c++-faq-lite/index.html
Site de usenet-fr: http://www.usenet-fr.news.eu.org



Avatar
Jean-Marc Bourguet
"Maldona8" writes:

je crois que le code est vraiment c++


[...]
this makefile compiles the simualtion engine with the standard (?) C
compiler, cc. It has only been tested in a DEC 5830 running Ultrix


Je ne crois pas.

A+

--
Jean-Marc
FAQ de fclc++: http://www.cmla.ens-cachan.fr/~dosreis/C++/FAQ
C++ FAQ Lite en VF: http://www.ifrance.com/jlecomte/c++/c++-faq-lite/index.html
Site de usenet-fr: http://www.usenet-fr.news.eu.org