EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025
<== Date ==> <== Thread ==>

Subject: RE: Unable to mind .lib files after successfully compiling EPICS using mingw64
From: Freddie Akeroyd - STFC UKRI via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Tue, 29 Apr 2025 19:57:40 +0000

As Ralph says there can be issues mixing c++ code compiled with different windows compilers, but this often shows up at link time as the name mangling of exported library symbols is different for visual studio and g++.   With a C callable DLL interface they are often compatible and given you managed to link a mex file (and matlab does claim it supports mingw64)  you may have only been missing a mingw DLL dependency. Adding   C:\msys64\mingw64\bin  to your PATH for the gcc C library and its dependencies might fix it; however compiling with Visual Studio has the advantage that required DLLs are usually already present on the system.   

 

Regards,

 

Freddie

  

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Ralph Lange via Tech-talk
Sent: 29 April 2025 19:01
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Subject: Re: Unable to mind .lib files after successfully compiling EPICS using mingw64

 

On Tue, 29 Apr 2025 at 17:56, Wang, Andrew via Tech-talk <tech-talk at aps.anl.gov> wrote:

 

I decided to recompile EPICS by using Strawberry Perl and Visual Studio. MATLAB CA works beautifully now.

 

Yes, mixing C++ code generated by the two compilers (GNU / VS) does not work. (I hope this is mentioned in the doc somewhere.)

Having some VS-based Windows libraries that need to be linked against is a very common reason to use the VS compilers.

 

Cheers,
~Ralph


References:
Unable to mind .lib files after successfully compiling EPICS using mingw64 Wang, Andrew via Tech-talk
Re: Unable to mind .lib files after successfully compiling EPICS using mingw64 Mark Rivers via Tech-talk
RE: Unable to mind .lib files after successfully compiling EPICS using mingw64 Wang, Andrew via Tech-talk
RE: Unable to mind .lib files after successfully compiling EPICS using mingw64 Freddie Akeroyd - STFC UKRI via Tech-talk
Re: Unable to mind .lib files after successfully compiling EPICS using mingw64 Wang, Andrew via Tech-talk
Re: Unable to mind .lib files after successfully compiling EPICS using mingw64 Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Would this motor record documentation be considered "current" Ralph Lange via Tech-talk
Next: Re: Handling Polling and CPU Bottleneck for Large Image Capture in areaDetector Kim, Kuktae via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025
Navigate by Thread:
Prev: Re: Unable to mind .lib files after successfully compiling EPICS using mingw64 Ralph Lange via Tech-talk
Next: Compile StreamDevice with PCRE on windows Neidherr, Dennis Dr. via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025