Mon Aug 20, 2018 8:13 pm
Login Register Lost Password? Contact Us


C++ "expected unqualified-id before string constant" error

Topics around the use of the Eclipse plugin

Fri Sep 30, 2016 2:31 pm Change Time Zone

I'm curious what could be causing workunits with inline C++ to fail.

Here's a very simple script, which completes successfully when submitted through the ECL Playground and the ECL IDE, but fails when submitted from Eclipse:
Code: Select all
INTEGER4 add(INTEGER4 x, INTEGER4 y) := BEGINC++
   #option pure
   #body
   return x + y;
ENDC++;

OUTPUT(add(10,20));


And the ECLCC log:
Code: Select all
--------- end compiler output -----------
g++: error: W20160930-140246_1.o: No such file or directory
BWR_Test:2:3: error: expected unqualified-id before string constant
---------- compiler output --------------


EDIT:
It turns out this was just a symptom of a different bug, and is not related to the Eclipse plugin.

ECL files that contain inline C++ will fail to compile if the path to the ECL file is more than 120 characters.
kpolicano
 
Posts: 3
Joined: Mon Apr 14, 2014 5:03 pm

Mon Jan 22, 2018 5:48 pm Change Time Zone

Thanks a lot.

I had a very similar problem with 120 characters limit and HPCC 5.4.2
BTW, I "think" this limit is fixed on HPCC 6.4.2
oscar.foley
 
Posts: 33
Joined: Mon Sep 12, 2016 10:27 am


Return to Eclipse IDE

Who is online

Users browsing this forum: No registered users and 1 guest