Mail Archives: djgpp/2000/05/17/07:39:57
"Alexei A. Frounze" a écrit :
>
> Yes, I checked that checkbox in RHIDE 1.4.7.5. Pascal source compiles to .O
> but linker fails because by default libfpc.a file is specified. There is no
> such a library file in FPC 0.99.12 (dos09912.zip).
OOPs!!! It works only if I compile under rhide, but _without_ a project.
I just start e.g.
rhide mandel.pp
and hit make or build after setting the "use FPC compiler" check box.
If I create a project the usual way it indeed fails at linking for not
finding libfpc.a
This can be removed by setting
RHIDE_TYPED_LIBS_FPC=
either in djgpp.env or rhide.env
but you stumble into other link errors.
It seems that recent versions of fpc completely broke the rhide
mechanism for compile_link.
It you look into your directory after a broken compilation/link you see
two files
ppas.bat
which calls the compiler and
link.res
which contains all the necessary linking information (directories and
libraries)
apparently rhide does not know about this mechanism and it is necesary
to change other
RHIDE_COMPILE_LINK..... lines
to teach him what to do.
Meanwhile since compiling without a project works I see little need to
stumble into those intricacies.
Anyway projects are needed for C C++ programming which cannot know where
are the files it needs
(what .c file contain the implementation for .h files it #include), but
not for Pascal (either fpc or gpc) which determines everything it needs
from uses clauses, not from a project, which in fact serves no purpose
(except may be for setting up some default options, but these are
contained in ppc386.cfg anyway).
> --
> Alexei A. Frounze
> -----------------------------------------
> Homepage: http://alexfru.chat.ru
> Mirror: http://members.xoom.com/alexfru
>
> Maurice Lombardi wrote:
> >
> > "Alexei A. Frounze" a écrit :
> > >
> > > Btw, is there any person who has succeded to setup RHIDE for working with
> > > FPC?
> > >
> > > It tries to link a program with fpc.a library although FPC has no such a
> > > file.
> > >
> > Rhide 1.4.7.5 works for me.
> > Have you set the option/environment/preferences/use FPC compiler
> > checkbox ?
> >
> > --
> > Maurice Lombardi
> > Laboratoire de Spectrometrie Physique,
> > Universite Joseph Fourier de Grenoble, BP87
> > 38402 Saint Martin d'Heres Cedex FRANCE
> > Tel: 33 (0)4 76 51 47 51
> > Fax: 33 (0)4 76 51 45 44
> > mailto:Maurice DOT Lombardi AT ujf-grenoble DOT fr
--
Maurice Lombardi
Laboratoire de Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 51 45 44
mailto:Maurice DOT Lombardi AT ujf-grenoble DOT fr
- Raw text -