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.
Related
When I run my C++ application I get an error message says CONCRT140D.dll was not found.
I thought it is a more frequent problem but I was wrong. I found only some useful links. I have some questions:
What is the difference between with D postfix or without it?
How Windows knows the missing library is this (if it is missing)?
It is probably part of the Visual Studio redistributable, so why is it so hard to know what it contains? And how to fix it.
Install/update VC++ redistributable doesn't solve the problem (or installing many other magic Microsoft things). Anyway, how I can deliver application
It seems me an easy problem to fix it, but I still struggle these questions.
My friend is trying to compile OpenDDS from here:
OpenDDS Insall Directions
I have no code.. but i need this to make pastebin work?
She has followed that link to a T. And it produces these errors:
Errors
Here is the full output from Visual Studio:
Output
The interesting part:
I can compile it just fine using the instructions from that link in the top. I have done more coding than she, so something is installed that is allowing it to compile without issue, she has a clean install of Visual Studio Community, I have Visual Studio Enterprise (Both 2019) - I do not think the versions should matter, but shared for better understanding.
From what I can gather from the errors, there is a problem locating files on her machine, and not mine. Why it can't find files? I have no idea... I am really confused with why it works for me not her.
I even went and made a VirtualBox Machine with windows 10 on it, and I get the same errors there.
Any and all help is super appreciated, thank you!
This was fixed in this PR: https://github.com/objectcomputing/OpenDDS/pull/1701, but that hasn't made it into a release yet. I can't comment in the comment chain above, but dxiv is correct that this is caused by an include dependency that broke in VS2019. It's only in the dds/DCPS/Serializer.h header though, so just having your friend change that file to how it is in the PR should allow it to build.
I'm trying to do the first tutorial of ROS on Windows in Visual Studio 2015.
First I created a new WIN 32 Console application and copied the code from here.
Then I configured the project as it is described in the guide. While Debugging there came up several errors:
The identifier "__builtin_expect" is undefined in the files service_client.h and TestTalker.cpp (which is the name of my program).
Cannot open source file "sys/time.h"
The SDK from wiki.ros.org runs, I tested it.
I have no idea what's wrong.
I hope someone can help me.
Thank you in advance!!
__builtin_expect is a GCC extension. It is not provided by Visual Studio.
Since it only provides a hint to the compiler to optimize for CPU branch-prediction, one could just replace all instances of __builtin_expect(expr, c) with expr.
Or, in cases where it fits, use __assume instead, as described in this answer.
curl being new to me, I am figuring out an easier way to compile it on Windows. I've managed to find a good documentation explaining in layman's terms all the steps, however this doc is based on curl-7.9.6.
It was simpler since curllib.dsw which is the Visual Studio Project file for curllib was found in folder curl-7.9.6\lib. So building it was resulting in libcurl.dll + libcurl.lib
Unfortunately this project file is no more in the latest version 7.46.0, and I would not like to mess around using other techniques I am not familiar with, compiler other than msvc (e.g MinGw), and if possible without resorting to cmd.
I have already done some researches online before posting this thread, but we never know maybe someone has written on this topic very simple documentation that everyone could understand and willing to share it publicly to get both the static library file and DLL (raised just above) or have found a way to get back the project file (.dsw) in the latest release which will a priori be straightforward to compile using Visual Studio 2013 (v120)
Best
This sounds like a relatively simple question, but I haven't been able to get Crypto++ to work. I'm using Microsoft Visual C++ 2010 Express (I'm cheap) and the .vcxproj/.vcproj/.sln files included in the library simply don't work. There are a lot of files, too, and I'm just not sure what exactly I need.
So does anyone know of a solution I could just drop in or something? Reference implementations are fine as long as they're not ridiculously inefficient or something. Sorry for such a mundane question, but I've looked around myself and I couldn't find anything I need - I guess cryptography just isn't my area of expertise.
That being said, though, it would be nice to get Crypto++ to work, if anyone has a clue as to how I might get VC++ 2010 to load the project files. The error is extremely... not descriptive. It just says the project couldn't be loaded and gives me -2147483647 as an error number.
EDIT: Here's the Conversion Report error:
The following error has occurred during XML parsing: File: C:\Users\Kyle\Desktop\Exoterra\Dependencies\crypto\cryptlib.vcproj Line: 102 Column: 5 Error Message: System error: -2147154677. The file 'C:\Users\Kyle\Desktop\Exoterra\Dependencies\crypto\cryptlib.vcproj' has failed to load.
This is line 102 of cryptlib.vcproj:
Name="VCPostBuildEventTool"
EDIT (again): I got it to work. I deleted everything referring to x64 in the project file and now it converted properly. Thanks anyway.
Not sure what problem you had.
Download version 5.6.1;
Unzip the downloaded archive;
Double click on cryptest.sln;
Visual Studio will open and ask if you want to convert the project;
Say yes;
After a while Visual Studio will show the converted solution;
With the Express version you want be able to compile the resource files in Visual Studio. You will need to use the rc compiler from the Windows SDK to compile them.