Title: trying to access C api via Inline C

hi all,

When I run the following code, I get a 'float exception(core)'...it seems to make it through the build process okay, but then croaks at the end ......when i compile the c part seperately, it runs just fine. It uses a 'special' datatype, opc_connection, but it is declared in the .h file with the line ,"typedef void * opc_connection;".

Any help, direction, chants, or charms would be appreciated.

Chuck

#!/usr/bin/perl

use Inline C => 'DATA',
        LIBS => "-L/opt/OV/lib -lopcsv_r -lnspsv",
        INC => "-I/opt/OV/include";

$hello = connect2opc('opc_adm','OpC_adm');

__DATA__
__C__

#include "opcsvapi.h"

int connect2opc(char * u, char * p){
        opc_connection conn;

        opc_connect (u,p,&conn);

        return(1);
}

Reply via email to