LNK2038 errors while running example code
- Sreejan Alapati
- Posts: 9
- Joined: Mon Feb 01, 2021 2:15 am
LNK2038 errors while running example code
I have been trying to run the predefined examples. I had configured and Generated the project in CMake, which is successful.. But in Visual studio.. After running the checkenvironment.cpp is generating a list of LNK2038 errors
. Can anyone help me with this?- Ayman Habib
- Posts: 2252
- Joined: Fri Apr 01, 2005 12:24 pm
Re: LNK2038 errors while running example code
Hello,
You're linking debug build against release libraries. This is not supported by the windows platform. Switch to Release or Relwithdebinfo in drop down for configuration and retry.
Best regards,
Ayman
You're linking debug build against release libraries. This is not supported by the windows platform. Switch to Release or Relwithdebinfo in drop down for configuration and retry.
Best regards,
Ayman
- Sreejan Alapati
- Posts: 9
- Joined: Mon Feb 01, 2021 2:15 am
Re: LNK2038 errors while running example code
Thanks,
That worked.. it doesn't generate errors anymore. But, it says it is unable to start program and Access is denied.
That worked.. it doesn't generate errors anymore. But, it says it is unable to start program and Access is denied.
- Sreejan Alapati
- Posts: 9
- Joined: Mon Feb 01, 2021 2:15 am
Re: LNK2038 errors while running example code
I was able to solve that too.
I have done two things...
a) I have provided full access for all users to the files that are in my OneDrive.
b) I have set the test environment as startup project.
I have done two things...
a) I have provided full access for all users to the files that are in my OneDrive.
b) I have set the test environment as startup project.