-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiling issue "error: ‘DU’ does not name a type" #5
Comments
Have you resolved the issue? |
No, it keeps occuring in our school cluster and the workstation. |
You can fix this issue by deleting the line: "namespace DU = DataUtil;", then replacing "DU" with "MotionCor2::DataUtil" in each of those files. |
i just run into the same error with CentOS7 and gcc 4.8.5. The problem is solved when using (in my case) gcc11 and cuda12. |
Thanks this worked. |
@nym4432018: My apology for this bug. In Correct/CCorrectInc.h, please try by moving "namespace DU = DataUtil;" to above namespace since DataUtil is subspace of MotionCor2, not Correct. namespace MotionCor2 |
Hi, I had the same error as this issue, and followed what you suggested here (correcting the CCorrectInc.h file). Then I got following errors: MrcUtil/CLoadCryoEMStack.cpp:18:8: error: reference to \u2018DU\u2019 is ambiguous |
@nym4432018: This is a bug in CMainInc.h. Please replace "namespace DU = MotionCor2::DataUtil;" with "namespace DU = DataUtil;" I am wondering my compiler (g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)) cannot catch this error. Can you please let me know what g++ version you use? You can run "g++ --version". Thanks. |
@szhengczii: |
Correct/CCorrectFullShift.cpp:15:1: error: reference to ‘DU’ is ambiguous
DU::CDataPackage* CCorrectFullShift::m_pPackage = 0L;
^
In file included from Correct/CCorrectFullShift.cpp:1:0:
Correct/CCorrectInc.h:14:24: note: candidates are: namespace MotionCor2::Correct::DU = MotionCor2::MotionCor2::DataUtil;
namespace DU = DataUtil;
^
In file included from Correct/../MotionDecon/../Align/CAlignInc.h:2:0,
from Correct/../MotionDecon/CMotionDeconInc.h:4,
from Correct/CCorrectInc.h:4,
from Correct/CCorrectFullShift.cpp:1:
Correct/../MotionDecon/../Align/../CMainInc.h:12:36: note: namespace MotionCor2::DU = MotionCor2::MotionCor2::DataUtil;
namespace DU = MotionCor2::DataUtil;
^
Correct/CCorrectFullShift.cpp:15:1: error: ‘DU’ does not name a type
DU::CDataPackage* CCorrectFullShift::m_pPackage = 0L;
^
make: *** [Correct/CCorrectFullShift.o] Error
gcc:
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
nvidia:
Driver Version: 535.104.05 CUDA Version: 12.2
The text was updated successfully, but these errors were encountered: