Author Topic: nasm, GoLink and static libraries?!  (Read 3973 times)

gammac

  • Guest
nasm, GoLink and static libraries?!
« on: June 11, 2014, 06:07:31 PM »
Hello,

I try to use nasm with GoLink but I can't find a way to link against static libraries. How does GoLink support static .lib files? Thanks for your answers!

best regards

wjr

  • Member
  • **
  • Posts: 236
    • WJR's website
Re: nasm, GoLink and static libraries?!
« Reply #1 on: June 12, 2014, 02:00:01 AM »
Static libraries are dealt with differently. The GoAsm manual has a section "Merging: using static code libraries" which explains this. So it is actually GoAsm that supports the static .lib files and not GoLink.

gammac

  • Guest
Re: nasm, GoLink and static libraries?!
« Reply #2 on: June 12, 2014, 02:09:26 AM »
you mean, there is no way to use static libraries and GoLink with other assemblers except GoAsm?

wjr

  • Member
  • **
  • Posts: 236
    • WJR's website
Re: nasm, GoLink and static libraries?!
« Reply #3 on: June 12, 2014, 02:37:26 AM »
Correct. Well, at least no direct way. Indirectly, I suppose you could use something like LIB.EXE to extract any needed OBJ files and link those as usual.