|
From: mingw124 <for...@li...> - 2012-08-11 18:42:54
|
Than I get an error. That it can't find "lpthread" and when I leave it out I of course get the "undefined reference" errors. Earnie wrote: > > On Sat, Aug 11, 2012 at 12:41 PM, mingw124 wrote: >> >> OK so for example for pthread, what would it be? The lib is called >> "libpthread.dll.a" and you link it as -lpthread. How do I link it >> statically >> so I don't need the dll. > > gcc -static -ofoo foo.o -lpthread > > -- > Earnie > -- https://sites.google.com/site/earnieboyd > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > MinGW-users mailing list > Min...@li... > > 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:min...@li...?subject=unsubscribe > > -- View this message in context: http://old.nabble.com/Using-mingw-without-dlls-tp34258134p34286546.html Sent from the MinGW - User mailing list archive at Nabble.com. |