C ++中的双复杂类型 [英] Double complex type in C++

查看:72
本文介绍了C ++中的双复杂类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我的操作系统是Windows 10.硬件:HP Pavilion。我有在Linux中编写,编译和运行的C ++应用程序类。现在我需要在Microsoft Visual Studio 2017中完成它,我的意思是我需要在Visual Studio中编译这个软件。我用google搜索并复制了
各种建议,但到目前为止还无法编译任何内容。现在看来我需要为System.Numeric.dll安装一个dll。我找不到它了。一个软件需要预装另一个软件,等等。为什么微软的一切都如此复杂?那么
问题是如何获得该dll?

My OS is Windows 10. Hardware: HP Pavilion. I have classes of C++ applications written, compiled and run in Linux. Now I need to do it in Microsoft Visual Studio 2017, I mean I need to compile this software in Visual Studio. I googled and copied various suggestions but so far could not compile anything. It seems now I need to install a dll for System.Numeric.dll. I cannot find it. One software needs another software preinstalled, etc. Why is it that everything is so complicated in Microsoft? So the question is how to get that dll?

#include< complex>不起作用。我的意思是这个声明编译,但我不能使用复杂的< double>例如,这就是我需要的。

#include <complex> does not work. I mean this very statement compiles but I cannot use complex<double> for instance and this is what I need.

谢谢。

推荐答案


我在Linux中编写,编译和运行C ++应用程序类。现在我需要在Microsoft Visual Studio 2017中完成它,我的意思是我需要在Visual Studio中编译这个软件。我用Google搜索并复制了各种建议,但到目前为止还无法编译
。我现在似乎需要为System.Numeric.dll安装一个dll。我找不到它。

I have classes of C++ applications written, compiled and run in Linux. Now I need to do it in Microsoft Visual Studio 2017, I mean I need to compile this software in Visual Studio. I googled and copied various suggestions but so far could not compile anything. It seems now I need to install a dll for System.Numeric.dll. I cannot find it.

我认为你需要陈述 您正在构建的项目类型 ,以及
并显示一些无法编译的实际代码。



使用System.Numeric.dll.you似乎正在尝试使用CLR,其为"
"用于"托管" C ++,C ++ / CLR。如果是跨平台代码,您可能需要构建一个C ++ Win32控制台应用程序项目 ,并且这个:b


复杂< double>

https://msdn.microsoft.com/en-us/library/25yefwd9.aspx
$


- Wayne

I think you need to state which type of project you're building,
and show some actual code that doesn't compile.

With System.Numeric.dll.you appear to be trying to use the CLR which is
for "managed" C++, C++/CLR. If it's cross-platform code you probably
should be building a C++ Win32 Console application project and this:

complex<double>
https://msdn.microsoft.com/en-us/library/25yefwd9.aspx

- Wayne


这篇关于C ++中的双复杂类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆