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

fix undefined reference errors on mingw #21

Merged

Conversation

msakai
Copy link
Member

@msakai msakai commented Jun 25, 2018

onnx_viewer, menoh_test and vgg16_benchmark refer to symbols under menoh_impl that are not exported from menoh DLL. This causes link error and failure of whole build process, which is nuisance for continuous integration.

As a temporary measure to avoid the problem on mingw, this commit disable __declspec(dllexport) on mingw. If there are no __declspec(dllexport), gcc builds a DLL that exports all symbols.

cc: @durswd

onnx_viewer, menoh_test and vgg16_benchmark refer to symbols under
menoh_impl that are not exported from menoh DLL. This causes link
error and failure of whole build process, which is nuisance for
continuous integration.

As a temporary measure to avoid the problem on mingw, this commit
disable __declspec(dllexport) on mingw. If there are no
__declspec(dllexport), gcc builds a DLL that exports all symbols.
@okdshin
Copy link
Contributor

okdshin commented Jun 25, 2018

I see. I will make a issue about that. I merge this PR anyway.

@okdshin okdshin merged commit d739a7a into pfnet-research:master Jun 25, 2018
@msakai msakai deleted the fix-mingw-undefined-references branch July 3, 2018 06:58
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

Successfully merging this pull request may close these issues.

2 participants