-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Windows, Cpp] LNK2001 - unresolved external symbol OMP_NUM_THREADS #6238
Comments
Thanks for the report and sorry about that! I suspect it's because in #6226, I forgot to add this new file Would you be willing to try adding it there and putting up a pull request? |
@wil70 I suspect you meant to post #6190 (comment) over here. Copying it here:
If you're unfamiliar with creating pull requests on GitHub, see https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork. The process is as follows:
# clone
git clone --recursive [email protected]:wil70/LightGBM.git
# (optional) add another remote pointing to the main LightGBM project
git remote add upstream [email protected]:microsoft/LightGBM.git
git checkout -b fix/vs-solution
cd ./LightGBM
git add ./windows
git commit -m "[c++] add openmp_wrapper to Visual Studio solution files"
git push origin fix/vs-solution
|
@wil70 are you still interested in submitting a pull request for this? If not or if you don't have time right now, let me know and I'll put up a fix. |
Hi @jameslamb , sorry, for the delay, if you can do it that would be great! (otherwise I shall e back home on 3rd and will be able to do it, but please feel free to push the fix before - TY) |
Ok no problem! I'll do it shortly. Thanks again for bringing it to our attention. |
Description
Linker issues after compilation
"LNK2001 - unresolved external symbol OMP_NUM_THREADS"
Reproducible example
Download the latest code as of Dec 15. Compile for windows in x64 bits.
You will see many linker issue in the error dialog
"LNK2001 - unresolved external symbol OMP_NUM_THREADS"
Environment info
Windows 10 PRO
LightGBM version or commit hash:
Latest as of dec 15
Command(s) you used to install LightGBM
Additional Comments
I tried to compile on 2 machines, same result.
The windows GPU version via cmake compile well.
The text was updated successfully, but these errors were encountered: