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

undefined reference to `_imp__tpl_**'| #15

Open
kaizhangzhang opened this issue May 12, 2016 · 1 comment
Open

undefined reference to `_imp__tpl_**'| #15

kaizhangzhang opened this issue May 12, 2016 · 1 comment

Comments

@kaizhangzhang
Copy link

when i first time use tpl,it build errors like:undefined reference to `_imp__tpl_pack',and then i found

ifdef _WIN32

#ifdef TPL_EXPORTS //(1)here is the probrom

define TPL_API __declspec(dllexport)

else /* */

ifdef TPL_NOLIB //(2)and here

define TPL_API

else

define TPL_API __declspec(dllimport)

endif /* TPL_NOLIB */

endif /* TPL_EXPORTS*/

else

define TPL_API

endif

and then i change the ifdef with ifndef,then the probrom solve,i do'n know why or that is true?

@kaizhangzhang
Copy link
Author

I know why,if i use tpl in windows just need change tpl.h line45 : #ifdef _WIN32 to #ifndef _WIN32

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

1 participant