You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key is the unresolved external symbol "public: virtual void __cdecl Morlet::generate part. Apparently it is because the symbol implemented in the fcwt.cpp file is not visible to the user, which is further confirmed by viewing the compiled .dll file:
I wonder if this is a bug or something environment dependent. If this is a confirmed bug, I will be happy to create a pull request.
Environment Information
c:\Users\augus\fCWT\build>cmake -G "Visual Studio 17 2022" -DBUILD_MATLAB=ON ..
Build type is Release
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.43.34808.0
-- The CXX compiler identification is MSVC 19.43.34808.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Building of shared library is enabled.
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
Building for Windows
C:/Users/augus/fCWT
STATUS OF LIBRARY: FFTW: [C:/Users/augus/fCWT/libs/fftw3f.lib]
-- Found Matlab: C:/Program Files/MATLAB/R2022b (found version "9.13.0.2502115")
-- Configuring done (6.6s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/augus/fCWT/build
The text was updated successfully, but these errors were encountered:
bjmiao
changed the title
Windows MATLAB INSTALL issue
MATLAB building issue under Windows: missing member function in the library
Feb 26, 2025
Hi,
I am trying to compile the library for further MATLAB usage. However, during the building step the following error occurs
The key is the unresolved external symbol "public: virtual void __cdecl Morlet::generate part. Apparently it is because the symbol implemented in the
fcwt.cpp
file is not visible to the user, which is further confirmed by viewing the compiled .dll file:(No member functions like Morlet::generate)
I checked the code
fCWT/src/fcwt/fcwt.h
Lines 81 to 90 in 49cb5a9
and found these member functions are not exported under Windows (missing
FCWT_LIBRARY_API
in the front).After adding the annotation, I solved the problem, as follows,
I wonder if this is a bug or something environment dependent. If this is a confirmed bug, I will be happy to create a pull request.
Environment Information
The text was updated successfully, but these errors were encountered: