Recent

Author Topic: Create a Library Project (win32) - after adding INTERFACES I get an error msg  (Read 3906 times)

PeterX

  • Sr. Member
  • ****
  • Posts: 442
Hi all,

I am a little bit confused - I create a Library Project from scratch.
When adding INTERFACES to the USES section in LPR file + adding Package LCL   I get an error:

"Fatal: Kann gettext nicht finden verwendet von LazUTF8. Stellen Sie sicher, daß alle .ppu-Dateien eines Packages sich in dessem Ausgabeverzeichnis befinden. ppu im falschen Verzeichnis=C:\lazarus\fpc\3.0.4\units\i386-win32\fcl-base\gettext.ppu.."

But gettext.ppu is in place as path above describes ..  :(

AND I have an older DLL project, created under LAZ 1.6.x, where Lazarus does not throw this error
and the DLL compiles. I checked every settings page and the Project Inspector - I see no differences ..

%)
« Last Edit: December 22, 2017, 12:23:50 am by PeterX »
usually using latest Lazarus release version with Windows 10 or 11

PeterX

  • Sr. Member
  • ****
  • Posts: 442
I cleanded out my _working_ DLL Library project and appened it here ..

It compiles even though unit INTERFACES is included.
usually using latest Lazarus release version with Windows 10 or 11

PeterX

  • Sr. Member
  • ****
  • Posts: 442
News:

When I open my "Empty_Project" and "save as .." to another  (new+empty)  folder
then there in the new folder the project does no more compile.

When I instead copy the complete folder and paste it anywhere, the project still compiles ..

What's Lazarus doing here ?
usually using latest Lazarus release version with Windows 10 or 11

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
News:

When I open my "Empty_Project" and "save as .." to another  (new+empty)  folder
then there in the new folder the project does no more compile.

When I instead copy the complete folder and paste it anywhere, the project still compiles ..

What's Lazarus doing here ?

Well that's not true for me. It compiles when using "save as" in a new folder.

About GetText, check if you're using LazUTF8 somewhere. According to several forum posts you should not use UTF8 suffixed functions anymore in newest FPC.

GetText is used AFAIK for translations.

Thaddy

  • Hero Member
  • *****
  • Posts: 18729
  • To Europe: simply sell USA bonds: dollar collapses
<Sigh> clean... Maybe just build instead of compile fixes this
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

PeterX

  • Sr. Member
  • ****
  • Posts: 442
Well that's not true for me. It compiles when using "save as" in a new folder.
That's interesting. Hm.

What happens if You Yourself create a new Win32 Library project and then
add LCL package and then INTERFACES in USES section ? Does it compile ?

About GetText, check if you're using LazUTF8 somewhere. According to several forum posts you should not use UTF8 suffixed functions anymore in newest FPC.
As You can see, the project just consists of the DPR file. No PAS file. Nothing else. Only added INTERFACES in USES section.
usually using latest Lazarus release version with Windows 10 or 11

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Well that's not true for me. It compiles when using "save as" in a new folder.
That's interesting. Hm.

What happens if You Yourself create a new Win32 Library project and then
add LCL package and then INTERFACES in USES section ? Does it compile ?

Yes, it compiles fine. I get Classes and then Interfaces, and of course the package LCL added.

PeterX

  • Sr. Member
  • ****
  • Posts: 442
Yes, it compiles fine. I get Classes and then Interfaces, and of course the package LCL added.
Thanks for Your help and the time You've spent on it.

I tried again two times, the first time I must have changed settings in a different order,
the first time the project failed, the second time I Got Your result - everything fine.

So I cannot reproduce the error that made my very first try fail ...  %)

But, now I can go on working on my code, that's the best !   :)
« Last Edit: December 22, 2017, 10:35:36 pm by PeterX »
usually using latest Lazarus release version with Windows 10 or 11

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
No problem.

I sometimes get strange behaviour, but not only lazarus, software in general, there are untested strange cases that freak us  :D

 

TinyPortal © 2005-2018