compiler-errors

How to Compile mingw-w64-crt

柔情痞子 提交于 2020-07-23 06:37:41
问题 I'm on Windows 10 and using the latest version of MSYS2 (with gcc installed: pacman -S gcc ) I'm trying to compile mingw-w64-headers and mingw-w64-crt from mingw-w64-v7.0.0 Inside of my MSYS2 installation directory C:\msys2 I have created the folder mingw-w64 which I reference in the prefix argument below. To compile each of these I use the same steps (replace name of library where appropriate): mkdir mingw-w64-crt && cd mingw-w64-crt ../mingw-w64-v7.0.0/mingw-w64-crt/configure --prefix=

How to Compile mingw-w64-crt

我与影子孤独终老i 提交于 2020-07-23 06:36:08
问题 I'm on Windows 10 and using the latest version of MSYS2 (with gcc installed: pacman -S gcc ) I'm trying to compile mingw-w64-headers and mingw-w64-crt from mingw-w64-v7.0.0 Inside of my MSYS2 installation directory C:\msys2 I have created the folder mingw-w64 which I reference in the prefix argument below. To compile each of these I use the same steps (replace name of library where appropriate): mkdir mingw-w64-crt && cd mingw-w64-crt ../mingw-w64-v7.0.0/mingw-w64-crt/configure --prefix=

Go build error: no non-test Go files in <dir>

泪湿孤枕 提交于 2020-07-20 11:24:42
问题 Getting an error when trying to run go build ./... from my $GOPATH/src . no non-test Go files in <dir> The error is correct there are no test files in <dir> but why is that causing a compile error? Is it a bug? 回答1: I don't think this is a bug, unless you see somewhere in the docs that contradicts this behaviour you should probably close the issue you've created. Tests in go normally live in the package they are testing. You have made a new package with package main at the top (invalid if you

Go build error: no non-test Go files in <dir>

爷,独闯天下 提交于 2020-07-20 11:23:36
问题 Getting an error when trying to run go build ./... from my $GOPATH/src . no non-test Go files in <dir> The error is correct there are no test files in <dir> but why is that causing a compile error? Is it a bug? 回答1: I don't think this is a bug, unless you see somewhere in the docs that contradicts this behaviour you should probably close the issue you've created. Tests in go normally live in the package they are testing. You have made a new package with package main at the top (invalid if you

Go build error: no non-test Go files in <dir>

泪湿孤枕 提交于 2020-07-20 11:23:04
问题 Getting an error when trying to run go build ./... from my $GOPATH/src . no non-test Go files in <dir> The error is correct there are no test files in <dir> but why is that causing a compile error? Is it a bug? 回答1: I don't think this is a bug, unless you see somewhere in the docs that contradicts this behaviour you should probably close the issue you've created. Tests in go normally live in the package they are testing. You have made a new package with package main at the top (invalid if you

Why does this code using __LINE__ compile under MSVC in Release mode, but not in Debug mode?

独自空忆成欢 提交于 2020-07-20 06:47:27
问题 Consider this program: #include <iostream> template<bool Debug = false, int Line = __LINE__> constexpr int adds(const int& a, const int& b) { if (Debug) std::cout << __FUNCTION__ << " called on line " << Line << '\n'; return (a + b); } int main() { std::cout << adds(3, 7) << '\n'; std::cout << adds<true, __LINE__> (5, 9) << '\n'; return 0; } When I try to compile and build this in Debug mode Visual Studio 2017 is generating these compiler errors: 1>------ Build started: Project: Simulator,

c++ compile error 'expected ';' at end of declaration' when using direct brace initialization

荒凉一梦 提交于 2020-07-18 16:24:16
问题 I'm very new to C++, working through my first tutorial, and when I try to compile code from the lesson, I get the following error: expected ';' at end of declaration int x{ }; // define variable x to hold user input (a... ^ ; The full code for the program I'm attempting to run: #include <iostream> // for std::cout and std::cin int main() { std::cout << "Enter a number: "; int x{ }; std::cin >> x; std::cout << "You entered " << x << '\n'; return 0; } I am using Visual Studio Code (v.1.46.1) on

Recovering Latex Compilation Errors

﹥>﹥吖頭↗ 提交于 2020-07-16 07:36:50
问题 I have a program to write a text and when I click on the 'compile' button, it compiles to latex, converts to pdf and displays it on my application. The problem is that when I have a compilation error, the application bugs and that's it. I'd like to know if it's possible to recover compilation errors without the application crashing. I tried with try/expect but it's not a python error so it doesn't work. You will need PDF.js to view the pdf https://mozilla.github.io/pdf.js/getting_started/

ERROR: Found input variables with inconsistent numbers of samples: [rows, columns]

北慕城南 提交于 2020-07-10 10:27:11
问题 I don't know what to do. I want to print out the classifier score but its not working. Can someone Help me? I really don't know what is the problem maybe its something with the Numpy Array ( numpy.arrange ). Traceback (most recent call last): File "C:/Users/Maximilian.Grinik/PycharmProjects/Augenbewegung/main.py", line 27, in <module> xG_train,xG_test,yG_train,yG_test = train_test_split(xG,yG,test_size=0.33) File "C:\Users\Maximilian.Grinik\PycharmProjects\Augenbewegung\lib\site-packages

ERROR: Found input variables with inconsistent numbers of samples: [rows, columns]

时光怂恿深爱的人放手 提交于 2020-07-10 10:26:35
问题 I don't know what to do. I want to print out the classifier score but its not working. Can someone Help me? I really don't know what is the problem maybe its something with the Numpy Array ( numpy.arrange ). Traceback (most recent call last): File "C:/Users/Maximilian.Grinik/PycharmProjects/Augenbewegung/main.py", line 27, in <module> xG_train,xG_test,yG_train,yG_test = train_test_split(xG,yG,test_size=0.33) File "C:\Users\Maximilian.Grinik\PycharmProjects\Augenbewegung\lib\site-packages