adam-faulkner / jnaerator

Automatically exported from code.google.com/p/jnaerator
0 stars 0 forks source link

Array with size from enum doesn't work #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

jnaerator on array with enum size doesn't work, e.g.

enum {
        IBV_SYSFS_NAME_MAX      = 64,
        IBV_SYSFS_PATH_MAX      = 256
};

struct ibv_device {
        char                    name[IBV_SYSFS_NAME_MAX];
        char                    dev_name[IBV_SYSFS_NAME_MAX];
        char                    dev_path[IBV_SYSFS_PATH_MAX];
        char                    ibdev_path[IBV_SYSFS_PATH_MAX];
};

What is the expected output? What do you see instead?

1. ERROR in file:///arrenum/ibv_device.java (at line 2)
        import arrenum.ArrenumLibrary.IBV_SYSFS_NAME_MAX;
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import arrenum.ArrenumLibrary.IBV_SYSFS_NAME_MAX cannot be resolved

2. ERROR in file:///arrenum/ibv_device.java (at line 4)
        import arrenum.ArrenumLibrary.IBV_SYSFS_PATH_MAX;
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import arrenum.ArrenumLibrary.IBV_SYSFS_PATH_MAX cannot be resolved

What version of the product are you using? On what operating system?

jnaerator-0.9.3.jar

Please provide any additional information below.

Original issue reported on code.google.com by fullung@gmail.com on 24 Mar 2010 at 7:44

GoogleCodeExporter commented 8 years ago
Hi fullung,
Thanks for your report, I'll fix that ASAP !
Cheers

Original comment by olivier.chafik@gmail.com on 24 Mar 2010 at 8:00

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 24 Mar 2010 at 8:01

GoogleCodeExporter commented 8 years ago
Hi fullung,

Sorry for not updating this issue for a long time, the but was fixed a while 
ago in SVN and I still didn't manage to upload an updated binary version 
(having systematic issues with Maven deploy + sourceforge).

If you can build JNAerator from sources (see 
http://code.google.com/p/javacl/wiki/Build), you can get a fixed version..

Cheers
--
Olivier

Original comment by olivier.chafik@gmail.com on 19 Jun 2010 at 11:27