compiler-errors

compiling gpsim on macOS causes “error: 'long long type-name' is invalid”

给你一囗甜甜゛ 提交于 2021-01-29 16:09:56
问题 Following this question, I'm trying to compile this code on macOS. I ran /System/Volumes/Data/usr/local/Cellar/qt/5.14.1/bin/qmake inside the build_XX folder successfully, and then make . However, I get the compiling error: ../src/gpsim/protocol.cc:79:8: error: 'long long type-name' is invalid uint long long i = ascii2uint64(buffer, digits); ^ 1 error generated. make: *** [build/release/protocol.o] Error 1 as suggested here, I added #ifdef __APPLE__ #include <sys/types.h> #endif // __APPLE__

Undefined mixin

限于喜欢 提交于 2021-01-29 14:54:11
问题 I'm using SASS to style a landing page but I am getting an error when I try to compile my sass into CSS. I receive an error that reads error sass/modules/_buttons.sass (Line 11: Undefined mixin 'button-size'.) Here is the code for this particular part .btn display: inline-block font-weight: $font-weight-normal line-height: $base-line-height text-align: center font-size: $font-base vertical-align: middle border: $border-width solid transparent transition: $btn-transition border-radius: $border

How to convert an 8086 emu assembly program to linux assembly comaptible

点点圈 提交于 2021-01-29 14:17:12
问题 I am writing a code to convert hex (A-F) to decimal in assembly. I managed to write it on 8086 emu but I need it for linux. I need help. The code works absolutely fine on 8086 emulator n windows. But I am unable to convert it into Linux syntax. I am not familiar with the Linux Syntax for assembly. This is my 8686 code. org 100h .model small .stack 100h .data msg1 db 'Enter a hex digit:$' msg2 db 'In decimal it is:$' .code main proc mov ax,@data mov ds,ax lea dx,msg1 mov ah,9 int 21h mov ah,1

Compile error - Invalid types 'char[int]' for array subscript

别等时光非礼了梦想. 提交于 2021-01-28 20:24:36
问题 I'm working on a program that does some matrix math. Fortunately the code logic is not what is giving me the errors. I am using the following code to output a matrix that is stored in a 2-d array: void ouputMatrix(char arr[], int matrixRows, int matrixColumns) { for (int a=0; a<matrixRows; a++) { for (int i=0; i<matrixColumns; i++) { cout << arr[a][i] << " "; } cout << endl; } cout << endl; } However when I try to compile this code, I am told: "In function 'void outputMatrix(char*, int, int)'

invalid use of template-name Queue without an argument list

痴心易碎 提交于 2021-01-28 12:06:06
问题 I'm getting a compile error that I can't figure out. It says: Queue.h:18:23: error: invalid use of template-name ‘Queue’ without an argument list Queue.h:23:23: error: invalid use of template-name ‘Queue’ without an argument list Can anyone help? #if !defined QUEUE_SIZE #define QUEUE_SIZE 30 #endif using namespace std; template <class TYPE> class Queue { private: TYPE *array; public: Queue(Queue& other); Queue(); ~Queue(); Queue& operator=(Queue other); TYPE pushAndPop(TYPE x); };

Failed to generate code error when compiling a ASP.NET website on a new computer

半世苍凉 提交于 2021-01-28 07:00:24
问题 I moved my ASP.NET 4.5 website to a new computer by copying the whole folder of the website. When I try to build the website on the new computer in Visual Studio 2012 (same version that I have on the first computer) I get a few warnning and Errors. Error: Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown. C:\Users\admin\Desktop\website_sample\App_Code\DataSet.xsd There are 21 warnnings , all saying "Unable to update auto-refresh reference" for

CGI error Can't use an array as a reference

假装没事ソ 提交于 2021-01-28 06:50:26
问题 My configuration is Debian Stretch I verify my Perl code with the command line perl -wcT admin.cgi I have an error in the code at this line: print &select("$id-2",\@values,\@values,@{$FORMAT{$name}}->[1]),"<br /> \n"; The error is: Can't use an array as a reference I also tried with this web editor It seems that the error is : @{$FORMAT{$name}}->[1] 回答1: As you say, the problem is here: @{$FORMAT{$name}}->[1] It appears that $FORMAT{$name} is expected to contain an array reference. And you

Error: Could not find or load main class … - Maven project out of Eclipse

随声附和 提交于 2021-01-28 06:11:30
问题 I created a Maven project with Eclipse and I am able to run the App.java in Eclipse. But now I want to run it out of Eclipse with this command: ..\workspace\subscribe\target\classes> java com.mqtt.subscribe.App EDIT: with executable jar : ..\workspace\subscribe>java -jar target\subscribe-0.0.1-SNAPSHOT.jar and get this error: Error: Could not find or load main class com.mqtt.subscribe.App What I am doing wrong? I don't understand it. I also try to rebuild the project with mvn package and mvn

How to convert a single object to a boost::any_range?

岁酱吖の 提交于 2021-01-28 04:56:13
问题 I'm trying to create and return a boost:any_range that contains only one object (I don't know if that's the core problem) but I get the following errors: error C2893: Failed to specialize function template 'range_iterator<C,void>::type boost::range_adl_barrier::begin(T &)' note: With the following template arguments: note: 'T=const WrappedRange' error C2672: 'end': no matching overloaded function found error C2893: Failed to specialize function template 'range_iterator<C,void>::type boost:

Configure .ccls file for Vim

纵饮孤独 提交于 2021-01-28 03:13:08
问题 I have no idea what I am doing; I decided to use Vim as my only editor, I'm trying to set up autocompletion and syntax checking, so I need to configure a .ccls file in the root of my project (and I don't want to generate a compile_commands.json file so please don't tell me about it). But there is no detailed documentation whatsoever on .ccls because all it does is use compiler flags, which of course I don't know; I have started not too long ago in C++ and I don't know any CMake, I was used to