EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Windows epicsMMIODef.h
From: Freddie Akeroyd - STFC UKRI via Core-talk <core-talk at aps.anl.gov>
To: "core-talk at aps.anl.gov" <core-talk at aps.anl.gov>
Date: Fri, 16 Jul 2021 14:07:27 +0000
Hi Dirk,

Unfortunately auto linking doesn't seem to be supported by gcc on MinGW
https://www.boost.org/doc/libs/1_76_0/more/getting_started/windows.html#auto-linking  so though adding the pragma would be helpful to Visual Studio users, could it potentially lead to confusion with things building OK with visual studio but not gcc/MinGW? 

Regards,

Freddie

> -----Original Message-----
> From: Zimoch Dirk (PSI) <dirk.zimoch at psi.ch>
> Sent: 16 July 2021 12:05
> To: core-talk at aps.anl.gov
> Cc: Akeroyd, Freddie (STFC,RAL,ISIS) <freddie.akeroyd at stfc.ac.uk>
> Subject: Windows epicsMMIODef.h
> 
> Hi folks,
> 
> I think that os/WIN32/epicsMMIODef.h sould contain a line #pragma
> comment(lib, "ws2_32.lib")
> 
> That would allow dll modules using it to automatically link winsock2 and avoid
> the error unresolved external symbol __imp_htonl without the user having to
> think about adding winsock2 to the Makefile.
> 
> What do Windows experts think about this? (Freddie?)
> 
> Dirk
> 


This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation (UKRI) has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UKRI does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses.

References:
Windows epicsMMIODef.h Zimoch Dirk (PSI) via Core-talk

Navigate by Date:
Prev: Windows epicsMMIODef.h Zimoch Dirk (PSI) via Core-talk
Next: Build failed in Jenkins: EPICS-3.14 #1096 Jenkins EPICS PSI via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Windows epicsMMIODef.h Zimoch Dirk (PSI) via Core-talk
Next: Build failed in Jenkins: EPICS-3.14 #1096 Jenkins EPICS PSI via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 16 Jul 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·