与Visual Studio 2015在同一文件中的JSX和Typescript(JSX and Typescript in the same file with Visual Studio 2015)
在Visual Studio 2015中:
- 我可以将文件扩展名更改为.jsx并开始编写JSX代码。
- 我可以将文件扩展名更改为.ts并开始在其中编写Typescript代码。
但是如何在单个文件中获取Visual Studio 2015中的JSX和Typescript? 喜欢.jsx.ts? 我希望知识分子同时与两者合作......
我发现这与Atom IDE一起使用。 http://blog.mgechev.com/2015/07/05/using-jsx-react-with-typescript/
据我所知,我需要支持Typescript 1.6。 如果Visual Studio 2015没有附带Typescrip 1.6支持,有没有办法使用夜间版本已经有这个实现?
In Visual Studio 2015 :
- I can change a file extension to .jsx and start writing JSX code inside.
- I can change a file extension to .ts and start writing Typescript code inside.
But how can I get JSX and Typescript in Visual Studio 2015 inside one single file ? Someting like .jsx.ts ? I would like to get intelissense working with both at the same time...
I found this wich works with Atom IDE. http://blog.mgechev.com/2015/07/05/using-jsx-react-with-typescript/
As far as I understand I need to have Typescript 1.6 support. If Visual Studio 2015 doesn't come with Typescrip 1.6 support, is there any way to use nightly builds wich allready have this implementation ?
原文:https://stackoverflow.com/questions/32302608
最满意答案
您链接到此处的说明的第7步似乎很奇怪。 通常你分别选择
/MD
和/MDd
for Release和Debug, 或者你选择/MT
和/MTd
。关键是你将你的Release版本的加密链接到C运行时库的动态版本(通过
/MD
),但你的测试exe被设置为链接到静态版本(通过/MT
)。您应该只链接到单个版本的CRT - 即在发布模式下使用
/MT
set而不是/MD
重新编译crypto ++,或者将测试exe更改为使用/MD
。有关这些标志的更多信息,请参阅msdn文档 。
Step 7 of the instructions you linked to here appear to be strange. Normally you'd select
/MD
and/MDd
for Release and Debug respectively, or you'd select/MT
and/MTd
.The crux is that you have your Release build of crypto linked to the Dynamic version of the C Runtime Library (via
/MD
), but your test exe is set to link to the Static version (via/MT
).You should only link to a single version of the CRT - i.e. recompile crypto++ in Release mode with
/MT
set instead of/MD
, or change your test exe to use/MD
.For further info on these flags, see the msdn docs.
相关问答
更多-
如何使用Qt和VS2010构建应用程序之类的应用程序(how to build a hello word like application using Qt and VS2010)[2022-08-26]
听起来就像你已经下载了源代码。 您可以使用下载的源代码构建SDK ,也可以下载可安装的SDK: http : //get.qt.nokia.com/qt/source/qt-win-opensource-4.7.2-vs2008.exe 。 这只安装框架。 您必须单独下载开发工具(QtCreator,QtDesigner,QtAssistant等)。 After a lot of reading and trial and error, I made it work and I wrote a guide ... -
您需要从源代码自己构建Qt。 你一定会想要维护两个Qt版本。 对于调试,您应该使用共享构建,因为这有合理的链接时间。 对于发行版,您应该使用静态构建,绝对使用链接时间代码生成来缩小可执行文件的大小,并期望构建一个简单的应用程序的时间为一分钟。 这是因为“链接”确实为Qt和您的应用程序生成了机器代码,并且代码是特定于您的应用程序的,因此通常会使性能更好。 在不浪费磁盘空间的情况下,多次拷贝源代码的方式是使用非源代码Qt构建。 到目前为止,静态Qt 5.1.1版本已经被破坏,所以下面的版本只适用于Qt 4,使用 ...
-
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libcryptlib.a else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libcryptlibd.a 在Visual Studio下的Windows上,Crypto ++库的名称是cryptlib.lib ,而不是libcryptlib.a 。 如果您使用Cygwin(我不相信你这样 ...
-
为什么不使用qtcreator构建项目? 您是否通过使用qtcreator进行测试应用程序来测试构建环境? PS:如果你愿意,我可以解释如何使用Visual Studio作为编译器和QtCreator作为IDE构建应用程序。 Why not build your project by using qtcreator ? Did you test your build environnement by making a test application with qtcreator ? P.S.: If yo ...
-
您必须为Android项目启用例外。 尝试将这些行包含在Applications.mk中: APP_CPPFLAGS += -frtti APP_CPPFLAGS += -fexceptions You have to enable exceptions for your Android project. Try to include these lines into your Applications.mk: APP_CPPFLAGS += -frtti APP_CPPFLAGS += -fexce ...
-
刚刚解决了! 可能是Qt Creator中的一个错误。 我的项目里面有4个子项目:main.exe,core.dll,side.dll,external.dll。 main.exe needs core.dll and side.dll core.dll needs external.dll 由于main.exe只需要core.dll和side.dll,我没有添加对external.dll的引用。 Qt Creator应该足够智能来检测它的依赖关系并相应地添加它们(好吧,最后这就是在Linux下发生的事情 ...
-
我找到了描述Crypto ++,Qt和Linux的博客: https://inphamousdevelopment.wordpress.com/2011/05/06/crypto-and-linux/ 主要的想法是你不应该使用下载的文件但使用终端: sudo apt-get install libcrypto++8 libcrypto++8-dbg libcrypto++-dev 要将库添加到项目,请使用以下命令: LIBS += -L/usr/lib/crypto++ -lcrypto++ INCS + ...
-
您链接到此处的说明的第7步似乎很奇怪。 通常你分别选择/MD和/MDd for Release和Debug, 或者你选择/MT和/MTd 。 关键是你将你的Release版本的加密链接到C运行时库的动态版本(通过/MD ),但你的测试exe被设置为链接到静态版本(通过/MT )。 您应该只链接到单个版本的CRT - 即在发布模式下使用/MT set而不是/MD重新编译crypto ++,或者将测试exe更改为使用/MD 。 有关这些标志的更多信息,请参阅msdn文档 。 Step 7 of the inst ...
-
如何使用Visual Studio 2013为Qt构建Crypto ++ 5.6.2?(How to build Crypto++ 5.6.2 in for Qt with Visual Studio 2013?)[2022-05-31]
mainwindow.obj:-1: error: LNK2001: unresolved external symbol "public: virtual unsigned __int64 __thiscall CryptoPP::ThreadUserTimer::GetCurrentTimerValue(void)" (?GetCurrentTimerValue@ThreadUserTimer@CryptoPP@@UAE_KXZ) mainwindow.obj:-1: error: LNK2001: ... -
好吧,我得到它的工作整个问题是在这... 1)CMit的git://anongit.kde.org/qca.git生成config-qca.h到QCA源目录。 2)在这个文件中有#define QCA_PLUGIN_SUBDIR“qca-qt5”而不是预测的“加密” 一种可能的解决方案是 1)在QCA中删除lib目录(如果以前的配置中有一个) 2)运行CMAKE 3)在config-qca.h中将“qca-qt5”更改为“crypto” 4)构建库 5)将库添加到项目中,然后应该正确加载所有插件 Ok I ...