开发者

How do I create a WT project in MSVC?

开发者 https://www.devze.com 2022-12-14 04:26 出处:网络
If anyone has used WT successfully with MSVC (mine is 2005), could you please provide some details on how this can be done?

If anyone has used WT successfully with MSVC (mine is 2005), could you please provide some details on how this can be done? I have installed WT fine , then ran some examples. The problems begin when I try to create a project of my own, as simple as hello.C. I get a thousand compiler errors like this开发者_运维技巧 one :

C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2143: syntax error : missing '{' before ':'

Possibly some project tuning is required, which I could not figure out, despite trying for many hours...Any help will be appreciated.

[Edit] WT is the Witty (webtoolkit.eu)


Well after searching and googling around for some days , it seems that using CMake is a must in order to build a WT project. This page explains the procedure. Hopefully it will save you some time.


Taking a random stab: Try renaming your file "hello.cpp". MSVC compiles .c files as C by default, not C++.

The first result for WT I found via google is the one Jason D linked. It is a C++ library, not a C library.

If this doesn't help, please provide more info, including what "WT" stands for, and some of your short sample code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号