Recent

Author Topic: linking error  (Read 917 times)

Seenkao

  • Hero Member
  • *****
  • Posts: 751
    • New ZenGL.
linking error
« on: April 21, 2022, 08:26:44 am »
Я собираю библиотеку SO. В определённых проектах библиотека собирается без проблем. А в части проектов выходит ошибка ignoring invalid character `" in expression. Во всех проектах есть пробелы в пути до файла! Там где выходит ошибка убираю пробелы и приложение линкуется. С чем это ​может быть связано?

Linux.  FPC 3.2.2. В Windows проблем не наблюдалось.

Google translate:
I am compiling the SO library. In certain projects, the library is built without problems. And in some projects, the error ignoring invalid character `" in expression. In all projects, there are spaces in the path to the file! Where the error occurs, I remove the spaces and the application is linked. What can this be connected with?

linux. FPC 3.2.2. There were no problems on Windows.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: linking error
« Reply #1 on: April 21, 2022, 09:27:11 pm »

Hi, Seenkao!


I've also experienced this problem and finally made the decision to never use whitespace in paths....and mainly in the  lazarus installation path!!!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12797
  • FPC developer.
Re: linking error
« Reply #2 on: April 21, 2022, 09:38:12 pm »
It's probably some unix tool (gdb, as, ar, ld, windres and the like).

FPC (and thus Lazarus) core file I/O works quite fine, as demonstrated by the Windows version.

The windres resource compiler will be replaced by an own tool in the next major FPC version, which removes another problem area.

 

TinyPortal © 2005-2018