Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-586

Compilation error when using double nested structures in API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • Java API binding
    • None

      Applying this patch https://gerrit.fd.io/r/#/c/4605/ produces following error when building:

      In file included from /home/vagrant/vpp/build-data/../src/vpp-api/java/jvpp-core/jvpp_core.c:59:0:
      jvpp-core/jvpp_core_gen.h: In function 'Java_io_fd_vpp_jvpp_core_JVppCoreImpl_lispGpeAddDelFwdEntry0':
      jvpp-core/jvpp_core_gen.h:3428:39: error: expected '=', ',', ';', 'asm' or '_attribute_' before '.' token
      jfieldID loc_pairs[_i].localIsIp4FieldId = (*env)->GetFieldID(env, loc_pairsLocalClass, "isIp4", "B");
      ^
      jvpp-core/jvpp_core_gen.h:3428:39: error: expected expression before '.' token
      jvpp-core/jvpp_core_gen.h:3429:36: error: expected '=', ',', ';', 'asm' or '_attribute_' before '.' token
      jbyte loc_pairs[_i].localIsIp4 = (*env)->GetByteField(env, loc_pairsLocal, loc_pairs[_i].localIsIp4FieldId);
      ...

            Unassigned Unassigned
            ftehlar Filip Tehlar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: