Recent

Author Topic: socketsh.inc not found with trunk FPC  (Read 2933 times)

hinst

  • Sr. Member
  • ****
  • Posts: 303
socketsh.inc not found with trunk FPC
« on: October 28, 2014, 01:21:43 pm »
When using Lazarus 1.2.7 with FreePascal trunk I keep getting this error:

D:\FPC\FPC\packages\rtl-extra\src\win\sockets.pp(53,5) Error: include file not found "socketsh.inc"

socketsh.inc file can be found in
D:\FPC\FPC\packages\rtl-extra\src\inc

I don't want to study this issue in depth; I just want a quick fix; I need to make Lazarus parser "see" this file. I tried adding the path to the file to Include files in Project settings. Surprisingly it does not work.

Parser fails when I edit unit using Sockets unit. Btw, Sockets unit is supposed to work on Windows, right?
« Last Edit: October 28, 2014, 01:24:34 pm by hinst »
Too late to escape fate

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: socketsh.inc not found with trunk FPC
« Reply #1 on: October 28, 2014, 01:46:31 pm »
sockets unit exists on Windows, for some reason your compiler decides to recompile it, while it shouldn't. Probably a lazarus misconfiguration (adding source to unit path directories) in combination with the -Ur safeguard missing in your trunk build.

IOW the IDE should find the FPC source (for browsing and codetools) but the compiler NOT.

hinst

  • Sr. Member
  • ****
  • Posts: 303
Re: socketsh.inc not found with trunk FPC
« Reply #2 on: October 28, 2014, 01:56:00 pm »
Compiling succeeds; CodeTools parser fails; that is why I only need this file now to be detected by parser
I have no errors with compiler; I only have error when pressing Ctrl+Space for code completion
Too late to escape fate

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: socketsh.inc not found with trunk FPC
« Reply #3 on: October 28, 2014, 03:08:11 pm »
I guess your CodeTools needs to "Rescan FPC Source Directory" Under Tools

hinst

  • Sr. Member
  • ****
  • Posts: 303
Re: socketsh.inc not found with trunk FPC
« Reply #4 on: October 28, 2014, 03:23:42 pm »
It does not help, I did it several times already
 ----
this has something to do with FPC trunk, maybe some files were moved at some point. I just need to add the path manually for now
Too late to escape fate

 

TinyPortal © 2005-2018