[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Thu, 26 Feb 2004 07:32:28 +0000 (UTC) 
Subject:Re: please guide me. 
From:f_j_54 
Volume-ID: 

IN THE NAME OF GOD

Hello.
Some of my code is at the end. I use objects of nn-utility at my program.
nn-utility is C++ and under existing conditions I think to implement neural
network without any tools(like as nn-utility) is better and simpler. Thank
you for your guidance.
In C:
#include </usr/include/nn-utility.h>
#include <stdio.h>
using namespace nn-utility;
nn-utility-functions<float> derived;
void neural_net_max_Q(float *sec,float *abi,float *opp,float *dan,float
*max_Q,float *w1-1,...)                  //I pass 23 parameters
{
}
In poplog:
external declare mytag in C;
void neural_net_max_Q(sec,abi,opp,dan,max_Q,w1-1,...)
float *sec,*abi,*opp,*dan,*max_Q,*w1-1,...;
{}
endexternal;

Sincerely,
Jenab.
----- Original Message -----
From: "Aaron Sloman" <A.Sloman@cs.bham.ac.uk>
To: <pop-forum@cs.bham.ac.uk>
Sent: Tuesday, February 24, 2004 6:49 AM
Subject: Re: please guide me.


> Jenab
>
> > I have written a C program that implements a neural net. The program
> > has used a nn-utility ,and I have to compile it with g++ command(
> > and not xgcc). I make its object file as following:
> > g++ -o neural-net.so -shared neural-net.cpp -lnn-utility
> >
> > But poplog at run time,gives a "MISHAP interrupted" on
> > "external load mytag
> >  neural-net
> > endexternal"
> >
> > Apparently, poplog doesn't accept neural-net.so by g++.
> > (There is not such problem with xgcc command for usual C programs).
>
> If your program is essentially C++, pop11 cannot access it directly
> (presumably because of the problems of working out the type
> structure).
>
> However if you write something in C which invokes C++ it may work.
>
> As a last resort you may have to post some of your code, showing
> the definition of the procedure you are trying to access from pop11.
>
> Aaron
> ====
> Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
> School of Computer Science, The University of Birmingham, B15 2TT, UK
> EMAIL A.Sloman AT cs.bham.ac.uk   (ReadATas@please !)
> PAPERS: http://www.cs.bham.ac.uk/research/cogaff/ (And free book on
 Philosophy of AI)
> FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html
>
>
>