Mail Archives: djgpp/1997/08/25/05:53:05
On Fri, 22 Aug 1997, Brad Fidler wrote:
> but none of the MGL libs start with 'lib'
> (ie: mglfx.a not libmglfx.a ) doesnt gcc expect
> all lib files its linking in to start with 'lib' ?
No, you only need the library name to begin with `lib' if you want to
pass it to the linker with the -l switch. E.g., -lfoo will cause the
linker to look for libfoo.a.
However, you can pass the library on the command line verbatim, as if it
were another object file, and then it can have any name you fancy.
- Raw text -