467,877 Members | 1,294 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,877 developers. It's quick & easy.

error:expected unqualified-id before string con

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
  • viewed: 1618
Share:
2 Replies
Expert 256MB
Where's the code?   ⠀⠀⠀⠀              ⠀⠀⠀⠀           
Jan 19 '21 #2
Banfa
Expert Mod 8TB
Are you trying to compile a JSON file as C code?
Jan 19 '21 #3

Post your reply

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

Similar topics

1 post views Thread by Elie B. | last post: by
1 post views Thread by Tan Thuan Seah | last post: by
2 posts views Thread by Keith Chadwick | last post: by
5 posts views Thread by J | last post: by
8 posts views Thread by jobo | last post: by
3 posts views Thread by RP | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.