Web lists-archives.com

Re: [Mingw-users] DLL Build issues




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13/06/16 23:21, Robert Cavanaugh wrote:
> gcc -shared -g  -L /c/MinGW/lib -L. 
> -L../../../armulif/armulif.b/intelrel 
> -L../../../rdi/rditools.b/intelrel -L../../../clx/clx.b/intelrel
> -l user32 --enable-runtime-pseudo-reloc -t  -o millisec.dll
> --library ../../../armulif/armulif.b/intelrel/armulif.lib
> --library ../../../clx/clx.b/intelrel/clx.lib --library 
> ../../../rdi/rditools.b/intelrel/rditools.lib millisec.o

I've lost count of the number of times this question has been answered
before, both by myself and countless others.  Search the archives, or
the web in general, for why the order in which libraries and object
files matters, on the GCC command line.

Furthermore, what is "--library" doing in there?  It is an *ld* alias
for "-l", so should obey the same syntactic (and semantic)
conventions, but I'm not aware that GCC supports it as a transparent
ld argument, in the way that it does for "-l"; the GCC documentation
doesn't mention it, AFAICT, so if you must use it (why?), you probably
need to specify it as "-Wl,--library".  (In any case, "--library"
followed by the full path name for the library file would be incorrect
usage).

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJXX9EMAAoJEMCtNsY0flo/c1AQAKLcYCHzJkBano/AhWMcvDm+
ejKEmXATI8k2IchV4BNYSwOkSygC80Bb8GRrjma4eBXS6fViVxUIwRhrjDo7Pt+a
9NYlxu1qsBCGSa1C1Mg/c6UvsFylH1AlKqBwPSiaQk2ObuXEU6x1J8dEPaaBpOkh
8jGC3OuSbyJ7QFyhAlCVuA9Tess/8bZBXOb0bHBSdTr2nUIv8BD8tqVqsddod/22
O7Yn8rqIYSByHXnvbPNUAqmkbG+L4M5YyIaTOgQAF5XbOZ5AEN7RiKUezAFt9JvC
G1gBU8EiSMwPZiseLehvbksOowTV2HTVCIalM6vywcRc9jfk7JcMPhNVKfDIfaEZ
+xNsgrzHGP6ZUTKO800JCLYcJFc3lMzQONqboLU4HJRPyHnm+aIssUUF0JsJm3mX
4uR1mWOD2yPz9ddIzhGt07qu9+8UZncSCWBumf0Yp06caItrx9fY9L+y6TtLcXAs
yhCUSpcsGFDgOAmVPPfEDXje/ppF14gPStCgBsfSAPreh8NvCDeR7QyA+7AQnFtE
Qwf8eTRhZkJXanifsPeaoqPbgxo3utxEfj72FnALzhA5gOd3lEYdeizrkpPmtV7X
MJfRp4uj4/uU1svqu6KM5Mm7nVSgV+utS7iArT4s8ks7OR7/En90Gidki15do3Jg
4lcZb+6mc1pR+rQ7w33W
=Z50F
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe