Window10 Clion, The File was loaded in wrong encoding:UTF-8 - windows

When I use clion on windows 10, I open a C++11 project which is downloaded from Internet. I found that the wrong encoding looks like:
enter image description here

Related

VisualStudio2022 can't navigate from compile error to source

I'm using VisualStudio 2022 community to develop linux program. The cross-platform compile do works and compile outputs shows Output view well.
But when double click the error message, it can't jump to source code of error place.
How to fix it?
I use GCC 8.4 on Centos 8 OS.
Thanks
I know the reason of my problem now.
Setting of "Remote build root" is incorrect in CMakeSettings.json.
This is the root dir of building on server, this path combine with the file path from gcc error message should point to the correct source file

missing payoffs.hpp and other .hpp from version

When building the Windows C++ version of quantlib 1.9.1, I get this error of missing payoffs.hpp. When I browse to the directories, I see payoffs.cpp, but not payoffs.hpp:
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'ql/instruments/payoffs.hpp': No such file or directory FittedBondCurve c:\users\administrator\google drive\quantlib-1.9.1\ql\cashflows\conundrumpricer.hpp 27
I also get this for #include <ql/instruments/swap.hpp> [and possibly others]. I am able to build the windows quantlib library ok. Just not the examples.
I just checked the QuantLib 1.9.1 release available from the project downloads (did you get your version from there?) and the files you're looking for are contained in the release zip and tarball. Also, it's pretty weird that you could compile the library without them, so I'd double check if they're there. If they really aren't—well, hard to know how they got displaced; anyway, you can download the release again and replace them. If that doesn't fix the problem (or if they're already there after all), it's possible that you have to fix the include path for the example you're trying to compile. Does it include the QuantLib directory?

Cannot open source file "opencv2/highgui/highgui.hpp"

I am trying to run this code that should open the webcam and take frames.
However, I am getting this error. Cannot open source file "opencv2/highgui/highgui.hpp"
I download opencv and VS15, I followed online guides on how to install opencv 3.1 on VS15 using CMAKE.
However, It gives the error I mentioned above along side some more errors
Cannot open source file "opencv2/highgui/highgui.hpp"
Cannot open source file "opencv2/imgproc/imgproc.hpp"
I am really new to this and it got me frustrated. Any help will be apreciated. Thanks in advance!
I copied the files into the project folder and just included the file names rather than the filepath, then I used tools -> NuGet package manager -> NuGet Package Console and entered
PM > Install-Package opencvdefault
If you use OpenCV on Windows, VS, I think you had better download opencv.exe and extract and compile automatically.
Add this dll and header file to the VS path. And add opencv path to the system environment, then restart Windows

Xinput.h: No such file or directory

I'm trying to get input from an xbox controller, I went to this page:
http://www.codeproject.com/Articles/26949/Xbox-360-Controller-Input-in-C-with-XInput
and I'm just test running his source, good thing I did because it found an error:
C:\Users\me;)\Desktop\XBOX360Test\XBOX360Test\CXBOXController.h|9|fatal error: Xinput.h: No such file or directory|
Can I don't know what the issue is, doesn't Xinput ship with windows?
I'm late I know, but I get the same error.
Opening the project in Visual Studio works fine, but compiling with gcc doesn't. Seems like the compiler of VS knows more than gcc and you need to compile it with that one. Here's how:
http://msdn.microsoft.com/en-us/library/ms235639(v=vs.80).aspx

GTK+ FT_Select_Size error

I have installed GTK+ 2.16 and Code::Blocks, trying to run a simple GTK+ program it gives me the following runtime error:
"The procedure entry point FT_Select_Size could not be located in the dynamic link library freetype6.dll"
I have checked the library exists, which it does, but I cannot seem to figure out how to fix this issue?
Seems like you are using Windows.
The error you've seen has to do with missing Freetype library.
Simply download it from GTK+ Windows download page:
http://www.gtk.org/download-windows.html
Go to the "Required third party dependencies" session.
Click on "Run-time" for Freetype to download.
Open the zip file, extract ./bin/freetype6.dll to %SystemRoot%\SYSTEM32 folder (i.e. C:\WINDOWS\SYSTEM32 on English Windows)

Resources