I'm trying to build qtCreator 2.3 with gcc 4.7 and I'm getting following error:
error: unable to find string literal operator ""
I'm using mingw32-make -lto as qtCreator source dir. Any thoughts?
Just Googled this and saw the following comment on this page
The subject error occurs because in the new c++11 a space between string concatenation is mandatory
It may be related to what you're seeing.
Related
I'm trying to use a clang-format file in CLion but CLion gives me the error:
Error reading [path to clang-format]: Invalid Argument
The error has to do with the RawStringFormats in my .clang-format file. When I remove the RawStringFormats section, CLion gives me no errors.
My .clang-format file is auto-generated by a script using Google's standards.
I need to find out the cause of the problem so I can modify the script to prevent this issue.
RawStringFormats:
- Delimiter: pb
Language: TextProto
BasedOnStyle: google
Delimiters is an array parameter, so
RawStringFormats:
- Language: TextProto
BasedOnStyle: Google
Delimiters: [pb]
CLion has a schema validator, and pb in your example is highlighted by yellow in editor. The tooltip shows the message:
Schema validation: incompatible types
Required: array. Actual: String
I know this probably looks like a duplicate, but it is actually a new issue I encountered. A ticket is opened on boost side, but no one is answering... (https://svn.boost.org/trac/boost/ticket/12505#comment:12)
My issue is simple: I am following the same steps as with any other boost version (by setting ZLIB_INCLUDE AND ZLIB_LIBPATH) but since 1.62 I get a strange error:
Name clash for '<pbin.v2\standalone\ac\msvc-14.0\debug\address-model-64\link-static\threading-multi>main.obj'
...
error: Tried to build the target twice, with property sets having
error: these incompatible properties:
error:
error: - <dll-path>... <library-path>... <xdll-path>...
I also tried to do it by configuring a custom user-config.jam but end up with the same error message.
For those who are interested, if you apply this diff (which will come along boost 1.64) then everything works fine: https://github.com/boostorg/build/commit/373fb6f76962caca9da109d4fe1e820af996326d?diff=unified.
I'm getting a strange problem with my C/C++ dev environment. I had installed gcc, g++ on my linux box(ubuntu 14.04).
With the hello world program being built on my system I'm getting this error:
make all
/bin/sh: 1: Syntax error: Unterminated quoted string
make: *** [src/Banker's.o] Error 2
has anyone encountered to this problem before could help me with this?
It looks like your problem is in the name of the file you're trying to compile: Banker's.c. Rename the source to Bankers.c without the single quote in it.
mv src/"Banker's.c" src/"Bankers.c"
every time I try to compile a sample program I get cv.h not found, highgui.c not found. I try to go to the includes folder in opencv and did a sudo copy * to usr/includes and did not help much: i got the following output can someone tell me what i do wrong?
stream_server.c:19:25: fatal error: /usr/include/highgui.h: Permission denied
compilation terminated.
uc#uc-HP-Pavilion-dv6-Notebook-PC:~/Desktop$ sudo gcc stream_server.c -o streamserver
stream_server.c: In function ‘quit’:
stream_server.c:174:5: warning: format not a string literal and no format arguments [-Wformat-security]
stream_server.c:177:5: warning: format not a string literal and no format arguments [-Wformat-security]
/tmp/ccVnjC7y.o: In function `cvDecRefData':
stream_server.c:(.text+0xa9a): undefined reference to `cvFree_'
stream_server.c:(.text+0xb22): undefined reference to `cvFree_'
/tmp/ccVnjC7y.o: In function `cvGetRow':
stream_server.c:(.text+0xc39): undefined reference to `cvGetRows'
/tmp/ccVnjC7y.o: In function `cvGetCol':
The first problem you have is that you apparently installed some file without the correct permissions. Since it seems you can use sudo, you might want to fix the permissions on the file:
sudo chmod a+r /usr/include/highgui.h
(similar to other files you don't have read permissions to).
The other problem indicates that you got your code to compile but not to link. This is most like because you either miss the library name entirely or you have it in the wrong location: make sure you use -lhighgui -lcvaux -lcxcore(this is what I gather from the docs; I haven't used this library myself) after any translation unit you provide (e.g., after stream_server.c; this looks suspiciously like a C file, implying a wrong language tag in action).
I've wrote up my regex for error parsing of an unsupported compiler. However, it seems to ignore me and I don't know how to debug it.
The error message looks like this:
"file.c", line 224: Error: #20: identifier "myvar" is undefined
I wrote up this regex for Error:
"(.*?)", line (\d+): Error: #(\d+): (.*)
File: $1, Line: $2, Desc: $4
Eclipse's Console and Problems tabs seems to ignore it. What am I missing here?
Eclipse for Windows 3.7.1, CDT 8.0.0
Edited: while I use an online Javascript-based regex tester,
to debug CDT regular expressions I prefer to click into the console and use the regular search dialog box.
This might help someone. I was trying to get a custom parser working but I could never get it to match. It was a setup problem. You have to setup the match in Window > Preferences > c/c++ > Build > Settings > Error Parsers. To get it to USE it you have to check it in > Properties > c/c++ build > settings > error parsers.
Looks like my regex wasn't matching the error message.
The following regex solved the issue:
"(.*?)", line (\d+): Error:(\s*)#(.*): (.*)
File: $1, Line: $2, Desc: $5
Hope this helps someone with the same issue.
It did help me, actually. In response to your question about how to debug the error parser, I did my regex pattern testing with Python against strings captured from a compiler run. Once I got that working I just pasted the regexes into the error parser form in CDT.
Obviously, there are many different ways to play with regex, notably Perl.