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

using vs2012 building telepresence #51

Open
GoogleCodeExporter opened this issue Aug 17, 2015 · 1 comment
Open

using vs2012 building telepresence #51

GoogleCodeExporter opened this issue Aug 17, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.Using vs2012 compilation telepresence 

In the following error:
“tp-libavfilter.a(avf_showspectrum.o) : error LNK2019: 
无法解析的外部符号 _hypot,该符号在函数 _filter_frame 
中被引用”

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 5 Feb 2015 at 3:05

@GoogleCodeExporter
Copy link
Author

新建个 .cc 的文件, 自己实现一个 hypot 函数:

extern double fabs(double);
extern double sqrt(double);

#ifdef __cplusplus
extern "C" {
double hypot(double x, double y) {
  double ax = fabs(x), ay = fabs(y);
  double xy = x/y, yx = y/x;
  return ax > ay
    ? ax * sqrt(1.0 + yx*yx)
    : ay * sqrt(1.0 + xy*xy);
}
}
#endif // __cplusplus

Original comment by [email protected] on 15 Mar 2015 at 6:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant