Recent

Author Topic: cthreads.pp file  (Read 2075 times)

timjones

  • New Member
  • *
  • Posts: 14
cthreads.pp file
« on: March 26, 2019, 09:39:15 pm »
I am an expert c/c++ programmer, but I am new to free pascal, and could use a little help.  :-)

I am trying to fully implement Posix threads under cthread source code for cthreads.pp file under /usr/share/fpc/3.0.0/unix/ directory.   However, even though this folder is referenced by the project options, this source file is not being compiled.  I assume this is due to the binary file being somewhere.  How can I force a compile from the source directory?

Also, I am running the code on debian on a raspberry pi (arm).
« Last Edit: March 26, 2019, 09:47:49 pm by timjones »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: cthreads.pp file
« Reply #1 on: March 26, 2019, 09:42:48 pm »
Have you tried Run -> Clean up and Build  ?

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: cthreads.pp file
« Reply #2 on: March 26, 2019, 09:49:13 pm »
If you are using Lazarus this file is a part of fpc not Lazarus. One soloution is, to include the file direct in your project. But this is a workaround.
regards
Andreas

timjones

  • New Member
  • *
  • Posts: 14
Re: cthreads.pp file
« Reply #3 on: March 26, 2019, 09:51:12 pm »
Have you tried Run -> Clean up and Build  ?

Yes I did...

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11447
  • FPC developer.
Re: cthreads.pp file
« Reply #4 on: March 26, 2019, 11:06:55 pm »
While an able person can do it, it is not recommended if you are not experience in FPC building. Better then to get the full source (afaik debian only packages the sources, but not all makefiles) and learn to build FPC.

A look at the buildfaq can e useful too.

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: cthreads.pp file
« Reply #5 on: March 27, 2019, 07:04:23 am »
An intermedian way is, to use fpcupdeluxe and let it do the getting of sources, startupcompiler, some tools and compiling the sources too, if you work with a visual enviroment. for fpc only, you can use fpcup only.

if you use this way, you shoul remove the old installation.

I think working with the buildfaq is good, if you can work with svn (not git), buildtools and have experience with make.   
regards
Andreas

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: cthreads.pp file
« Reply #6 on: March 28, 2019, 12:57:41 am »
How can I force a compile from the source directory?
Not exactly what you have asked, but quick and dirty fix would be to copy all missing files into project dir. Or include directory with missing files to project options.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018