Recent

Author Topic: How to fix linklib internal error 200603061 ???  (Read 7411 times)

dtamadeEx

  • New Member
  • *
  • Posts: 17
How to fix linklib internal error 200603061 ???
« on: December 13, 2021, 05:56:39 pm »
I will encounter this error in x64 when linking static libraries, not in x86
What is the problem?

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: How to fix linklib internal error 200603061 ???
« Reply #1 on: December 13, 2021, 05:58:35 pm »
Show the sample small project.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2023
  • Former Delphi 1-7, 10.2 user
Re: How to fix linklib internal error 200603061 ???
« Reply #2 on: December 13, 2021, 11:51:47 pm »
* Operating system?
* FPC version?
* Lazarus IDE version?

dtamadeEx

  • New Member
  • *
  • Posts: 17
Re: How to fix linklib internal error 200603061 ???
« Reply #3 on: December 14, 2021, 12:45:40 am »
* Operating system?
* FPC version?
* Lazarus IDE version?

* Operating system: win10
* FPC version:3.20
* Lazarus IDE version:2.0.12

dtamadeEx

  • New Member
  • *
  • Posts: 17
Re: How to fix linklib internal error 200603061 ???
« Reply #4 on: December 14, 2021, 03:01:02 am »
Show the sample small project.

I've located the unit

But I can't find any problems

Adding - Xe and x64 to the command line of FPC compiler also succeeded

What macros can be used in unit files? - Xe?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: How to fix linklib internal error 200603061 ???
« Reply #5 on: December 14, 2021, 09:13:43 am »
I will encounter this error in x64 when linking static libraries, not in x86
What is the problem?

Is this a publicly available static library? If yes, which one? Was it compiled with MSVC, GCC, or Clang?

I've located the unit

But I can't find any problems

The problem is likely the static library (or more precisely FPC's internal linker not handling that library correctly), not your unit.

Adding - Xe and x64 to the command line of FPC compiler also succeeded

What macros can be used in unit files? - Xe?

-Xe is a program level option and can't be used inside a unit.

dtamadeEx

  • New Member
  • *
  • Posts: 17
Re: How to fix linklib internal error 200603061 ???
« Reply #6 on: December 14, 2021, 09:57:09 am »
https://github.com/dtamade/TMD.TALib

I sent it to GitHub,
Boss, please help me answer the reason for this question

At present, it is found that the internal link error comes from "Ta_ Global" code


dtamadeEx

  • New Member
  • *
  • Posts: 17
Re: How to fix linklib internal error 200603061 ???
« Reply #7 on: December 14, 2021, 10:01:04 am »
I will encounter this error in x64 when linking static libraries, not in x86
What is the problem?

Is this a publicly available static library? If yes, which one? Was it compiled with MSVC, GCC, or Clang?

I've located the unit

But I can't find any problems

The problem is likely the static library (or more precisely FPC's internal linker not handling that library correctly), not your unit.

Adding - Xe and x64 to the command line of FPC compiler also succeeded

What macros can be used in unit files? - Xe?

-Xe is a program level option and can't be used inside a unit.

I checked the FPC manual and it is true that there is no such macro.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6692
Re: How to fix linklib internal error 200603061 ???
« Reply #8 on: December 14, 2021, 10:10:31 am »
I checked the FPC manual and it is true that there is no such macro.

You're arguing with one of the compiler developers whose taking his time to try to help you. He didn't say it was a macro, he said it was a program level option so needs to be specified on the command line.

https://www.freepascal.org/docs-html/current/user/userap1.html#x171-178000A

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dtamadeEx

  • New Member
  • *
  • Posts: 17
Re: How to fix linklib internal error 200603061 ???
« Reply #9 on: December 14, 2021, 11:05:25 am »
I checked the FPC manual and it is true that there is no such macro.

You're arguing with one of the compiler developers whose taking his time to try to help you. He didn't say it was a macro, he said it was a program level option so needs to be specified on the command line.

https://www.freepascal.org/docs-html/current/user/userap1.html#x171-178000A

MarkMLl

 :D

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: How to fix linklib internal error 200603061 ???
« Reply #10 on: December 14, 2021, 01:35:04 pm »
https://github.com/dtamade/TMD.TALib

I sent it to GitHub,
Boss, please help me answer the reason for this question

At present, it is found that the internal link error comes from "Ta_ Global" code

Thank you. I don't know if I'll be able to take a look today though.

dtamadeEx

  • New Member
  • *
  • Posts: 17
Re: How to fix linklib internal error 200603061 ???
« Reply #11 on: December 14, 2021, 02:20:45 pm »
https://github.com/dtamade/TMD.TALib

I sent it to GitHub,
Boss, please help me answer the reason for this question

At present, it is found that the internal link error comes from "Ta_ Global" code

Thank you. I don't know if I'll be able to take a look today though.

 :) thanks

 

TinyPortal © 2005-2018