compiler-errors

Cmake Could not find wxWigets

ぐ巨炮叔叔 提交于 2020-07-09 16:51:35
问题 I want to compile a source code on windows using CMake, it uses wxWigets library. I downloaded the wxWigets from the page: https://www.wxwidgets.org/ After building by Visual Studio, I got the library /lib file. I have already set PATH for wxWidgets_LIBRARIES and wxWidgets_INCLUDE_DIRS. But the following errors cannot be resolved. CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find wxWidgets (missing: wxWidgets

Cmake Could not find wxWigets

…衆ロ難τιáo~ 提交于 2020-07-09 16:50:25
问题 I want to compile a source code on windows using CMake, it uses wxWigets library. I downloaded the wxWigets from the page: https://www.wxwidgets.org/ After building by Visual Studio, I got the library /lib file. I have already set PATH for wxWidgets_LIBRARIES and wxWidgets_INCLUDE_DIRS. But the following errors cannot be resolved. CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find wxWidgets (missing: wxWidgets

Unable to create an array of wchar_t

◇◆丶佛笑我妖孽 提交于 2020-07-07 11:50:14
问题 In my code I have an array of wchar_t: wchar_t paths [6] = {L"C:\\Program Files\\SomeAppsSuiteFolder1", L"C:\\Program Files\\SomeAppsSuiteFolder2", L"C:\\Program Files (x86)\\SomeAppsSuiteFolder1", L"C:\\Program Files (x86)\\SomeAppsSuiteFolder2", L"C:\\SomeAppsSuiteFolder1", L"C:\\SomeAppsSuiteFolder2"}; Later on I use the array in for loop. The problem is, that for this line I get following errors: error: too many initializers for 'wchar_t [6]' error: initializer-string for array of chars

Unable to create an array of wchar_t

血红的双手。 提交于 2020-07-07 11:49:50
问题 In my code I have an array of wchar_t: wchar_t paths [6] = {L"C:\\Program Files\\SomeAppsSuiteFolder1", L"C:\\Program Files\\SomeAppsSuiteFolder2", L"C:\\Program Files (x86)\\SomeAppsSuiteFolder1", L"C:\\Program Files (x86)\\SomeAppsSuiteFolder2", L"C:\\SomeAppsSuiteFolder1", L"C:\\SomeAppsSuiteFolder2"}; Later on I use the array in for loop. The problem is, that for this line I get following errors: error: too many initializers for 'wchar_t [6]' error: initializer-string for array of chars

Error in parse(outFile) : unexpected end of input - bug in package install, and how to fix

扶醉桌前 提交于 2020-06-29 04:30:10
问题 In trying to install my own package from GitHub I hit a problem that others have notified me about and I'd tried unsuccessfully to fix. I conclude that the package installer misinforms the user about the problem source, leading to fruitless searching for faults in working scripts. install_github("SimonDedman/gbm.auto", force = TRUE) (Screenshot so it lines up properly) 回答1: One would logically conclude that the problem is... where the console says it is - the end of this file, gbm.valuemap

compiler error gcc-8: error: unrecognized command line option '-no-pie'

穿精又带淫゛_ 提交于 2020-06-27 15:49:29
问题 I am trying to compile using this makefile but got this error. I can compile using school's linux computer with gcc 6.3. I tried using my MacOS mojave using a few different version of gcc from homebrew (gcc-8, gcc-4.9, gcc-6) but I get this error consistently. CC = gcc-8 OPT = -O3 -g LIBS = -lz -lcvp -lz FLAGS = -std=c++11 -L. $(LIBS) $(OPT) -no-pie OBJ = myprogram.o DEPS = cvp.h myprogram.h all: cvp cvp: $(OBJ) $(CC) $(FLAGS) -o $@ $^ %.o: %.cc $(DEPS) $(CC) $(FLAGS) -c -o $@ $< .PHONY:

Eclipse Build Error “A class file was not written. The project may be inconsistent, if so try refreshing this project and building it”

十年热恋 提交于 2020-06-25 08:06:30
问题 I have been struggling with a very weird issue that has suddenly popped up on the latest version of Eclipse Classic (4.2.2). Everytime I try creating or refactoring a class or subclass in any of my projects (all Java) in my Eclipse workspace I get an error at the very top of my class that says A class file was not written. The project may be inconsistent, if so try refreshing this project and building it Again, this happens when I create new classes. And even when I rename current classes,

Error no appropriate default constructor available

限于喜欢 提交于 2020-06-23 13:43:08
问题 I am implementing a list class with node and iterator, that creates a list of type Ticket, which is an object that i have defined in a class, but when i try to compile it says that there is no default constructor for List when there clearly is. Does anyone see the issue here? This is the class definition class List : public Ticket { public: List(); void tick_print(vector<Ticket*> halfticks, int i); void push_back(Ticket* data); void insert(Iterator iter, Ticket* s); Iterator erase(Iterator

Issuing a warning at compile time?

心不动则不痛 提交于 2020-06-22 21:26:21
问题 I want to issue a warning at compile time, perhaps from a macro. It should not be silenceable by cap_lints . My current use case is feature deprecation, but there's other possible uses for this. 回答1: This currently isn't possible in stable Rust. However, there is an unstable feature, procedural macro diagnostics, which provides this functionality for procedural macros, via the Diagnostic API. To emit a compiler warning from inside a procedural macro, you would use it like this: #![feature

Issuing a warning at compile time?

前提是你 提交于 2020-06-22 21:24:09
问题 I want to issue a warning at compile time, perhaps from a macro. It should not be silenceable by cap_lints . My current use case is feature deprecation, but there's other possible uses for this. 回答1: This currently isn't possible in stable Rust. However, there is an unstable feature, procedural macro diagnostics, which provides this functionality for procedural macros, via the Diagnostic API. To emit a compiler warning from inside a procedural macro, you would use it like this: #![feature