Forum > FPC development

[SOLVED] how to get {$LINKLIB libgte.a} in to the linker script?

<< < (3/3)

Key-Real:
btw:

how to catch the
-a
compiler option?

Key-Real:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---  found:=FindFile(s,exepath,false,foundfile); if not(cs_link_nolink in current_settings.globalswitches) and (not found) then         Message1(exec_w_objfile_not_found,s); 

he search in the exe path :(

but I specify -Fl./path/

now what?

ccrause:

--- Quote from: Key-Real on July 19, 2024, 02:06:31 pm ---I have some libraries like
libgte.a
my executable should be linked against.
so i do in my program
{$LINKLIB libgte.a}

I'm at the writing linker script stage.

how to get the name of this lib in my t_ps1.pas in class(TExternalLinker)?

--- End quote ---

After reading the other messages in this discussion I believe I misunderstood your original question. Your t_ps1.pas implementation of TLinkerPS1.WriteScriptFile seems incomplete when compared against the equivalent method WriteResponseFile of t_linux.pas or t_embed.pas.  You probably need to write ObjectFiles to the INPUT section, and StaticLibFiles to the GROUP section of the linker response file.

Navigation

[0] Message Index

[*] Previous page

Go to full version