[MOAB-dev] MOAB CMake error in Windows 10

Vijay S. Mahadevan vijay.m at gmail.com
Tue Jan 31 10:23:28 CST 2023


Hi Xilu,

I apologize about the tardy reply. I see an error message related to
the Fortran linker.

> main.obj : error LNK2019: unresolved external symbol CALL_MOD referenced in function MAIN__
> C:\Users\xwang\Dropbox\c++\geokernel\build\CMakeFiles\FortranCInterface\Release\FortranCInterface.exe : fatal error LNK1120: 1 unresolved externals

Are you using Fortran in your solver? If possible, try to disable
Fortran dependency by using -DENABLE_FORTRAN=OFF. I see that it is ON
in your CMake configuration. Let us know if that fixes the issue.

Vijay

On Tue, Jan 31, 2023 at 11:00 AM Xilu Wang <wangxiluwxl at gmail.com> wrote:
>
> Hi Vijay,
>
> May I know if you have any suggestions regarding my errors? Thank you!
>
> Best,
> Xilu
>
>
> On Sat, Jan 28, 2023 at 3:08 PM Xilu Wang <wangxiluwxl at gmail.com> wrote:
>>
>> Hi Vijay,
>>
>> Thank you so much for your response. Please find attached the logs and my CMake env-variables.
>>
>> Best,
>> Xilu
>>
>>
>>
>> On Sat, Jan 28, 2023 at 2:42 PM Vijay S. Mahadevan <vijay.m at gmail.com> wrote:
>>>
>>> I do not see any attachments for the logs.
>>>
>>> > Below is my error message in CMake:
>>> >
>>> > CMake Error at src/CMakeLists.txt:352 (STRING):
>>> STRING sub-command REGEX, mode REPLACE failed to compile regex
>>> "^C:/Users/xwang/Dropbox/c++/Divergent3D/build/src/".
>>>
>>> Can you tell us the CMake version that you are using?
>>>
>>> Vijay
>>>
>>> On Sat, Jan 28, 2023, 11:32 Xilu Wang <wangxiluwxl at gmail.com> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I was trying to configure MOAB in Windows 10 via CMake, however, I got
>>>> the following error, which is caused by lines 352 and 353 of
>>>> src\CMakeLists.txt in the MOAB folder.
>>>>
>>>> Below is my error message in CMake:
>>>>
>>>> CMake Error at src/CMakeLists.txt:352 (STRING):
>>>> STRING sub-command REGEX, mode REPLACE failed to compile regex
>>>> "^C:/Users/xwang/Dropbox/c++/Divergent3D/build/src/".
>>>>
>>>> CMake Error at src/CMakeLists.txt:353 (string):
>>>> string sub-command REGEX, mode MATCH needs at least 5 arguments total to
>>>> command.
>>>>
>>>>
>>>> Attached are my CMakeError.log and CMakeOutput.log.
>>>>
>>>> I downloaded the source code from
>>>> https://bitbucket.org/fathomteam/moab/src/master/, which is the latest
>>>> version of MOAB.
>>>>
>>>> Thank you,
>>>> Xilu


More information about the moab-dev mailing list