Skip to content
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

Building Error #7

Closed
461353349 opened this issue Dec 5, 2018 · 3 comments
Closed

Building Error #7

461353349 opened this issue Dec 5, 2018 · 3 comments

Comments

@461353349
Copy link

461353349 commented Dec 5, 2018

I build OpenBlas 0.3.3 from sourceforge through cmake on Win7. But when building optim, There are 16 unresolved external symbols.

logit_reg.obj: error: LNK2001: unresolved external symbol dgesv
bfgs.obj: error: LNK2001: unresolved external symbol dposv_
lbfgs.obj: error: LNK2001: unresolved external symbol dgesdd_
D:\Project\Opti\Opti\optim\Bin\optim.exe: error: LNK1120: 16 unresolved external symbol_

@kthohr
Copy link
Owner

kthohr commented Dec 5, 2018

Looks like a linking error with OpenBLAS. Check that your linker flags are set correctly (e.g., -L/path/to/OpenBLAS -lopenblas).

@461353349
Copy link
Author

Does these linking error is relevent with lapack? I have compiled Openblas with BUILD_WITHOUT_LAPACK checked. I cannot compile Openblas with lapack on windows. I have test Openblas 0.3.3 and 0.2.20, They have same linking errors.

@kthohr
Copy link
Owner

kthohr commented Dec 7, 2018

Yes, you need Lapack.

@kthohr kthohr closed this as completed Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants