Need to cImport every included file manually
See https://gitlab.com/kaushalmodi/nimterop_include_issue/blob/master/README.org 

---


# Table of Contents

1.  [Steps to recreate the issue](#org4f1f24e)
2.  [Error](#orgc8ddb6f)
3.  [Nim version](#orgf3c8f54)


<a id="org4f1f24e"></a>

# Steps to recreate the issue

1.  Ensure that you have the latest nimterop installed
    -   Clone the nimterop repo, cd to it and do `nimble install`
2.  Clone this repo:

        git clone https://gitlab.com/kaushalmodi/nimterop_include_issue
3.  Build it:

        cd nimterop_include_issue
        nim c mean_func_1.nim


<a id="orgc8ddb6f"></a>

# Error

    Hint: time_t [Processing]
    Importing /home/kmodi/sandbox/nim/nimterop_include_issue/matlab_export/mean_func_1.h
    /home/kmodi/.nimble/pkgs/nimterop-0.1.0/nimterop/toast --pnim --preprocess /home/kmodi/sandbox/nim/nimterop_include_issue/matlab_export/mean_func_1.h
    mean_func_1.nim(31, 8) template/generic instantiation of `cImport` from here
    /home/kmodi/usr_local/apps/6/nim/devel/lib/core/macros.nim(552, 29) Error: undeclared identifier: 'struct0_T'


<a id="orgf3c8f54"></a>

# Nim version

    Nim Compiler Version 0.19.9 [Linux: amd64]
    Compiled at 2019-04-03
    Copyright (c) 2006-2019 by Andreas Rumpf

    git hash: dc2986789b703300ac0680a10004f77453b146c3
    active boot switches: -d:release
