It shows error...while compile time plzz suggest something so m can run it

query

#1
#include<stdio.h>
//#include</usr/include/aerospike/as_error.h>
#include</usr/include/aerospike/as_config.h>
#include</usr/include/aerospike/as_log.h>
#include</usr/include/aerospike/as_status.h>

#include</usr/include/aerospike/aerospike.h>
#include</usr/include/aerospike/aerospike_key.h>
#include</usr/include/aerospike/aerospike_query.h>
#include</usr/include/aerospike/as_error.h>
#include</usr/include/aerospike/as_key.h>
#include</usr/include/aerospike/as_query.h>
#include</usr/include/aerospike/as_record.h>
#include</usr/include/aerospike/as_status.h>
#include</usr/include/aerospike/as_val.h>

main()
{
    as_config config;
    as_config_init(&config);
    as_config_add_hosts(&config, "host1,host2:3010,10.1.1.11:3020,[2001::1000]:3030", 3000);
    //as_config_add_host(&config, "10.1.1.11", 3000);
    //config.hosts[0] ={ .addr = "127.0.0.1", .port = 3000 };
    //as_config_tls_add_host(&config, "10.1.1.11", "node1.test.org", 3000);
    aerospike as;
    aerospike_init(&as, &config);
    as_error err;
    if (aerospike_connect(&as, &err) != AEROSPIKE_OK) {
        fprintf(stderr, "err(%d) %s at [%s:%d]\n", err.code, err.message, err.file, err.line);
    }

    printf("Hi");
}

#2

whats the error?


#3

reference not found of “aerospike_init”’


#4

Also check Connect problem


#5

tq sir…this problem get solve…now am want to display record in database can you suggest code