472,980 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,980 software developers and data experts.

error:expected unqualified-id before string con

1 Bit
this is my code:
I am getting an error:expected unqualified-id before string constant

Expand|Select|Wrap|Line Numbers
  1. #include<iostream>
  2. #include<string>
  3.  
  4. "version":1
  5. "name":"Example project"
  6. "build_commands": {
  7.     "CompileC++" : {
  8.         "action":"compile"
  9.         "args":["-fms-extensions", "-fms-compatibility", "-x", "c++", "-std=c++14", "-w"]
  10.         "sys_include_dir":["C:/include/ucrt", "C:/include/msvc"]
  11.         "include_dir":[""]
  12.         "comment":"The empty string in include_dir has the effect of adding the project folder to non-system header search path. For the record, any field not-interpreted by DevMax can be used to add comment like this."
  13.     }
  14.     "MakeExe" : {
  15.         "action":"link",
  16.         "args":["/defaultlib:msvcrt.lib", "/subsystem:Console"],
  17.         "sys_lib_dir":["C:/lib/msvc", "C:/lib/winsdk"]
  18.     }
  19. },
  20. "build_definitions": [
  21.     {
  22.         "name":"Build program",
  23.         "build_steps": [
  24.             {
  25.                 "command":"CompileC++",
  26.                 "inputs":["src/Source.cpp"]
  27.             },
  28.             {
  29.                 "command":"MakeExe",
  30.                 "inputs":["src/Source.o"],
  31.                 "output":"Source.exe"
  32.             }
  33.         ]
  34.     },
  35.     {
  36.         "name":"Inline/anonymous build command",
  37.         "build_steps": [
  38.             {
  39.                 "action":"compile",
  40.                 "args":["-fms-extensions", "-fms-compatibility", "-x", "c++", "-std=c++14", "-w"],
  41.                 "sys_include_dir":["C:/include/ucrt", "C:/include/msvc"],
  42.                 "include_dir":[""],
  43.                 "inputs":["src/Source.cpp"]
  44.             }
  45.  
can somebody help me please.

I am getting an error:expected unqualified-id before string constant
Jan 18 '21 #1
2 3498
dev7060
626 Expert 512MB
Where's the code?   ⠀⠀⠀⠀              ⠀⠀⠀⠀           
Jan 19 '21 #2
Banfa
9,065 Expert Mod 8TB
Are you trying to compile a JSON file as C code?
Jan 19 '21 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Elie B. | last post by:
Hi, I'm new to Python. I'm trying to embbed Python in my Windows application having some success with redirecting the stdin/out to my windows application using: In my C++ code I use...
2
by: gbgbgbgb | last post by:
Hi, I have a definition bool operator<(string s_s, string s_t) { .... } and a variable list<string> concomp;
1
by: Tan Thuan Seah | last post by:
Hi all, I have a string with several numbers in it. The numbers each can be up to 14 characters.(i.e ---------12345---------1234, where - represents spaces). Is there any way to retrieve the...
2
by: Keith Chadwick | last post by:
XML <data> <option>this is test 1</option> <option>this is test 11</option> <option>this is test 111</option> <option>this is test 1111</option> <option>this is test 11111</option> </data>
5
by: J | last post by:
I have a string with lots of numbers i need in a seperate an array. each number is split using a ",". How do i split them up and put them in to an array. eg. egstring = 1,23,423,2,2 i need...
8
by: jobo | last post by:
Hello, If I'm given a string that always starts with the word "free" followed by an integer ("free xx"). How do I parse through the characters and get to the integer value? Thanks.
10
by: R2d2Rabeau | last post by:
Hi, I'm new to C#, please be patient :-) I am trying to pass an Arraylist (myAL) to a jagged array (myAL2) . The problem I have is that when I write the values to a file i do not get the values...
1
by: Vinodsrvk | last post by:
I am having a situation that I need to convert string in to an object The string will be like "this.loanoverview.Text" since loanoverview is an existing element in the page and its having value...
0
by: Vinodsrvk | last post by:
I am having a situation that I need to convert string in to an object The string will be like "this.loanoverview.Text" since loanoverview is an existing element in the page and its having value in...
3
by: RP | last post by:
I have a string in the following format Computer I want to remove the text that starts with [. Though I used substring which keeps checking whether the character is [ and stops reading more...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.