jeudi 2 juillet 2015

Why can't I compile this C API (NeMo Spiking Neural Network Simulator)

Hi I am trying to utilize this library http://ift.tt/1Nyk9EY to play around with Spiking Neural Networks.

I am new to C and C++.

What I've done is, downloaded the installer from here: http://ift.tt/1Nyk9F0

Installed.

I then wrote this program in main.c file:

#include<nemo.h>
#include<stdio.h>
#include<stdlib.h>

main()
{
    printf("Hello World!");
    getchar();      
}

and compiled it using MinGW on Windows:

gcc -I"C:\Program Files (x86)\NeMo\include" main.c -o main.exe

I get the following error:

In file included from main.c:1:0:
C:\Program Files (x86)\NeMo\include/nemo.h:48:1: error: unknown type name 'nemo_
network_class'
 typedef nemo_network_class* nemo_network_t;
 ^
C:\Program Files (x86)\NeMo\include/nemo.h:49:1: error: unknown type name 'nemo_
simulation_class'
 typedef nemo_simulation_class* nemo_simulation_t;
 ^
C:\Program Files (x86)\NeMo\include/nemo.h:50:1: error: unknown type name 'nemo_
configuration_class'
 typedef nemo_configuration_class* nemo_configuration_t;
 ^

Please help me.

It looks like nemo.h has problems, but I suspect I am missing something because I am a newbie...

Aucun commentaire:

Enregistrer un commentaire