[fpc-pascal] New user questions
Daniël Mantione
daniel.mantione at freepascal.org
Tue Apr 17 12:34:18 CEST 2007
Op Tue, 17 Apr 2007, schreef Cosmin Prund:
> Thanks for your answers Daniel, and sorry for the non-standard quoting,
> I'm fighting Outlook here! Scary business!
Google for "Outlook quotefix" :)
> >> (1) What do you recommend for managing an project? I started
> making
> >> changes in the FP IDE using the menu-selects, but that doesn't seem
> >> like a very portable solution. I do not expect my work to be
> important
> >> enough for others to want it (and need to compile it) but I might
> need
> >> to move my thing over to a different computer. I see no "project"
> menu in FP...
> >
> >The FP IDE does not use project files because it considers an IDE
> directory a project. You place files of a project in a directory, and if
> necessary, >subdirectories, then start the IDE. It asks if you want to
> put a config file in the directory, answer with yes.
> >
> >All configuration changes to the IDE will then then be saved to fp.ini
> and fp.cfg, which you can distrubute with your project.
>
> Ok, this project concept will work.
>
> I have an issue with putting files into subdirectories those. I tried
> using the Synapse library for my socket programming tests, and I placed
> the source files in a "Lib" subdirectory. How do I get the compiler to
> properly see those files? I fiddled around with the settings in the IDE
> and managed to get the files compiling, so the compiler saw them, but
> once I did that I failed to see some of the standard libraries so I must
> have done it the wrong way. In the Delphi IDE this can happen if I
> change the library search path without keeping the original bits and
> pieces, I suppose there's some trick like this in the FP IDE also, but
> I've seen no default search path to leave untouched...
The normal way is, if you have a subdirectory "lib", you go to
options->directories and put a line "lib" there.
The compiler finds the standard libraries by means of options in
/etc/fpc.cfg, $HOME/.fpc.cfg or an fpc.cfg in the current directory.
Daniël
More information about the fpc-pascal
mailing list