I tried to build the Netgen from source with USE_SUPERBUILD off in cmake gui. Already downloaded the other parts, cgns_win64, occ75_win64, tcltk_win64, zlib_win64 from the git. When the project nglib try to read the function “NGCORE_API TBitArray& Or (const TBitArray& ba2)” in bitarray.hpp, there will be an error LNK2001.
The error is "unresolved external symbol “__declspec(dllimport) public: class ngcore::TBitArray & __cdecl ngcore::TBitArray::Or(class ngcore::TBitArray const &)” (_imp?Or@ $TBitArray@VPointIndex@netgen@@@ngcorenngcorenngcorenngcoren@QEAAAEAV12@QEAAAEAV@QEAAAEAV122@AEBV12re**@@QEAAAEAV12@AEBV12@@Z).** "
If you have any ideas, please let me know. Thanks.
I want to run meshing in Visual studio as simple as possible, only contain the ngcore and nglib, without python and ngsolve.
With the help of Chatgpt, I tried
(1) to change the ngcore and nglib from shared to static, set the DLL_HEADER to empty.
(2) to turn the use_python off, delete the anyflags in function Flags:: DoArchive.
Build success.
But when test with a small case, there are errors.

