[gme-users] BON Extender VC7.1 Link errors
BaSsMaN
inbasswetrust at gmail.com
Sun Jun 10 12:47:32 CDT 2007
Hello again.
The source code generated by BonX is in the attachment.
Here is the code of the most complex class:
#include "stdafx.h"
#include "GRAFCETBonX.h"
//********************************************************************************
//
//********************************************************************************
void GRAFCET_BON::EtapaImpl::accept( BON::Visitor *pVisitor)
{
// visit the Atom
pVisitor->visitAtom( BON::Atom( this));
}
//********************************************************************************
// returns dst GRAFCET_BON::Accions
//********************************************************************************
std::multiset<GRAFCET_BON::Accion> GRAFCET_BON::EtapaImpl::getAsociacionDsts()
{
std::multiset<GRAFCET_BON::Accion> res;
{
std::multiset<BON::ConnectionEnd> out_ends =
BON::ConnectionEndImpl::getOutConnEnds("Asociacion");
for ( std::multiset<BON::ConnectionEnd>::iterator cit =
out_ends.begin() ; cit != out_ends.end() ; ++cit )
{
GRAFCET_BON::Accion dst( *cit );
ASSERT(dst);
res.insert( dst);
}
}
return res;
}
//********************************************************************************
// returns dst GRAFCET_BON::InicioMultiples
//********************************************************************************
std::multiset<GRAFCET_BON::InicioMultiple>
GRAFCET_BON::EtapaImpl::getInicioMultipleDsts()
{
std::multiset<GRAFCET_BON::InicioMultiple> res;
{
std::multiset<BON::ConnectionEnd> out_ends =
BON::ConnectionEndImpl::getOutConnEnds("EtapaMultiple");
for ( std::multiset<BON::ConnectionEnd>::iterator cit =
out_ends.begin() ; cit != out_ends.end() ; ++cit )
{
GRAFCET_BON::InicioMultiple dst( *cit );
ASSERT(dst);
res.insert( dst);
}
}
return res;
}
//********************************************************************************
// returns dst GRAFCET_BON::FinMultiples
//********************************************************************************
std::multiset<GRAFCET_BON::FinMultiple>
GRAFCET_BON::EtapaImpl::getFinMultipleDsts()
{
std::multiset<GRAFCET_BON::FinMultiple> res;
{
std::multiset<BON::ConnectionEnd> out_ends =
BON::ConnectionEndImpl::getOutConnEnds("EtapaMultiple");
for ( std::multiset<BON::ConnectionEnd>::iterator cit =
out_ends.begin() ; cit != out_ends.end() ; ++cit )
{
GRAFCET_BON::FinMultiple dst( *cit );
ASSERT(dst);
res.insert( dst);
}
}
return res;
}
//********************************************************************************
// returns src GRAFCET_BON::FinMultiples
//********************************************************************************
std::multiset<GRAFCET_BON::FinMultiple>
GRAFCET_BON::EtapaImpl::getFinMultipleSrcs()
{
std::multiset<GRAFCET_BON::FinMultiple> res;
{
std::multiset<BON::ConnectionEnd> in_ends =
BON::ConnectionEndImpl::getInConnEnds("EtapaMultiple");
for ( std::multiset<BON::ConnectionEnd>::iterator cit =
in_ends.begin() ; cit != in_ends.end() ; ++cit )
{
GRAFCET_BON::FinMultiple dst( *cit );
ASSERT(dst);
res.insert( dst);
}
}
return res;
}
//********************************************************************************
// returns src GRAFCET_BON::InicioMultiples
//********************************************************************************
std::multiset<GRAFCET_BON::InicioMultiple>
GRAFCET_BON::EtapaImpl::getInicioMultipleSrcs()
{
std::multiset<GRAFCET_BON::InicioMultiple> res;
{
std::multiset<BON::ConnectionEnd> in_ends =
BON::ConnectionEndImpl::getInConnEnds("EtapaMultiple");
for ( std::multiset<BON::ConnectionEnd>::iterator cit =
in_ends.begin() ; cit != in_ends.end() ; ++cit )
{
GRAFCET_BON::InicioMultiple dst( *cit );
ASSERT(dst);
res.insert( dst);
}
}
return res;
}
//********************************************************************************
//
//********************************************************************************
std::set<GRAFCET_BON::EtapaMultiple>
GRAFCET_BON::EtapaImpl::getInEtapaMultipleLinks()
{
std::set<GRAFCET_BON::EtapaMultiple> result;
std::set<BON::Connection> conns = ConnectionEndImpl::getInConnLinks();
std::set<BON::Connection>::iterator it = conns.begin();
for( ; it != conns.end(); ++it)
{
GRAFCET_BON::EtapaMultiple c( *it);
if (c)
result.insert( c);
}
return result;
}
//********************************************************************************
//
//********************************************************************************
std::set<GRAFCET_BON::Salto> GRAFCET_BON::EtapaImpl::getInSaltoLinks()
{
std::set<GRAFCET_BON::Salto> result;
std::set<BON::Connection> conns = ConnectionEndImpl::getInConnLinks();
std::set<BON::Connection>::iterator it = conns.begin();
for( ; it != conns.end(); ++it)
{
GRAFCET_BON::Salto c( *it);
if (c)
result.insert( c);
}
return result;
}
//********************************************************************************
//
//********************************************************************************
std::set<GRAFCET_BON::Transicion> GRAFCET_BON::EtapaImpl::getInTransicionLinks()
{
std::set<GRAFCET_BON::Transicion> result;
std::set<BON::Connection> conns = ConnectionEndImpl::getInConnLinks();
std::set<BON::Connection>::iterator it = conns.begin();
for( ; it != conns.end(); ++it)
{
GRAFCET_BON::Transicion c( *it);
if (c)
result.insert( c);
}
return result;
}
//********************************************************************************
//
//********************************************************************************
std::set<GRAFCET_BON::Asociacion>
GRAFCET_BON::EtapaImpl::getOutAsociacionLinks()
{
std::set<GRAFCET_BON::Asociacion> result;
std::set<BON::Connection> conns = ConnectionEndImpl::getOutConnLinks();
std::set<BON::Connection>::iterator it = conns.begin();
for( ; it != conns.end(); ++it)
{
GRAFCET_BON::Asociacion c( *it);
if (c)
result.insert( c);
}
return result;
}
//********************************************************************************
//
//********************************************************************************
std::set<GRAFCET_BON::EtapaMultiple>
GRAFCET_BON::EtapaImpl::getOutEtapaMultipleLinks()
{
std::set<GRAFCET_BON::EtapaMultiple> result;
std::set<BON::Connection> conns = ConnectionEndImpl::getOutConnLinks();
std::set<BON::Connection>::iterator it = conns.begin();
for( ; it != conns.end(); ++it)
{
GRAFCET_BON::EtapaMultiple c( *it);
if (c)
result.insert( c);
}
return result;
}
//********************************************************************************
//
//********************************************************************************
std::set<GRAFCET_BON::Salto> GRAFCET_BON::EtapaImpl::getOutSaltoLinks()
{
std::set<GRAFCET_BON::Salto> result;
std::set<BON::Connection> conns = ConnectionEndImpl::getOutConnLinks();
std::set<BON::Connection>::iterator it = conns.begin();
for( ; it != conns.end(); ++it)
{
GRAFCET_BON::Salto c( *it);
if (c)
result.insert( c);
}
return result;
}
//********************************************************************************
//
//********************************************************************************
std::set<GRAFCET_BON::Transicion>
GRAFCET_BON::EtapaImpl::getOutTransicionLinks()
{
std::set<GRAFCET_BON::Transicion> result;
std::set<BON::Connection> conns = ConnectionEndImpl::getOutConnLinks();
std::set<BON::Connection>::iterator it = conns.begin();
for( ; it != conns.end(); ++it)
{
GRAFCET_BON::Transicion c( *it);
if (c)
result.insert( c);
}
return result;
}
//********************************************************************************
// returns dst GRAFCET_BON::Etapas
//********************************************************************************
std::multiset<GRAFCET_BON::Etapa> GRAFCET_BON::EtapaImpl::getSaltoDsts()
{
std::multiset<GRAFCET_BON::Etapa> res;
{
std::multiset<BON::ConnectionEnd> out_ends =
BON::ConnectionEndImpl::getOutConnEnds("Salto");
for ( std::multiset<BON::ConnectionEnd>::iterator cit =
out_ends.begin() ; cit != out_ends.end() ; ++cit )
{
GRAFCET_BON::Etapa dst( *cit );
ASSERT(dst);
res.insert( dst);
}
}
return res;
}
//********************************************************************************
//
//********************************************************************************
std::set<GRAFCET_BON::Salto> GRAFCET_BON::EtapaImpl::getSaltoLinks()
{
std::set<GRAFCET_BON::Salto> result;
std::set<BON::Connection> conns = ConnectionEndImpl::getConnLinks();
std::set<BON::Connection>::iterator it = conns.begin();
for( ; it != conns.end(); ++it)
{
GRAFCET_BON::Salto c( *it);
if (c)
result.insert( c);
}
return result;
}
//********************************************************************************
// returns src GRAFCET_BON::Etapas
//********************************************************************************
std::multiset<GRAFCET_BON::Etapa> GRAFCET_BON::EtapaImpl::getSaltoSrcs()
{
std::multiset<GRAFCET_BON::Etapa> res;
{
std::multiset<BON::ConnectionEnd> in_ends =
BON::ConnectionEndImpl::getInConnEnds("Salto");
for ( std::multiset<BON::ConnectionEnd>::iterator cit =
in_ends.begin() ; cit != in_ends.end() ; ++cit )
{
GRAFCET_BON::Etapa dst( *cit );
ASSERT(dst);
res.insert( dst);
}
}
return res;
}
//********************************************************************************
// returns dst GRAFCET_BON::Etapas
//********************************************************************************
std::multiset<GRAFCET_BON::Etapa> GRAFCET_BON::EtapaImpl::getTransicionDsts()
{
std::multiset<GRAFCET_BON::Etapa> res;
{
std::multiset<BON::ConnectionEnd> out_ends =
BON::ConnectionEndImpl::getOutConnEnds("Transicion");
for ( std::multiset<BON::ConnectionEnd>::iterator cit =
out_ends.begin() ; cit != out_ends.end() ; ++cit )
{
GRAFCET_BON::Etapa dst( *cit );
ASSERT(dst);
res.insert( dst);
}
}
return res;
}
//********************************************************************************
//
//********************************************************************************
std::set<GRAFCET_BON::Transicion> GRAFCET_BON::EtapaImpl::getTransicionLinks()
{
std::set<GRAFCET_BON::Transicion> result;
std::set<BON::Connection> conns = ConnectionEndImpl::getConnLinks();
std::set<BON::Connection>::iterator it = conns.begin();
for( ; it != conns.end(); ++it)
{
GRAFCET_BON::Transicion c( *it);
if (c)
result.insert( c);
}
return result;
}
//********************************************************************************
// returns src GRAFCET_BON::Etapas
//********************************************************************************
std::multiset<GRAFCET_BON::Etapa> GRAFCET_BON::EtapaImpl::getTransicionSrcs()
{
std::multiset<GRAFCET_BON::Etapa> res;
{
std::multiset<BON::ConnectionEnd> in_ends =
BON::ConnectionEndImpl::getInConnEnds("Transicion");
for ( std::multiset<BON::ConnectionEnd>::iterator cit =
in_ends.begin() ; cit != in_ends.end() ; ++cit )
{
GRAFCET_BON::Etapa dst( *cit );
ASSERT(dst);
res.insert( dst);
}
}
return res;
}
Thanks in advance.
2007/6/8, Zoltan Molnar <zolmol at isis.vanderbilt.edu>:
> Hello Javier,
>
> Could you please provide some additional info like:
> -Source code generated by BonX
> or
> -try to reproduce this error on a simple HelloWorld paradigm, by executing BonX on it
>
> Br,Zoli
>
> > -----Original Message-----
> > From: gme-users-bounces at list.isis.vanderbilt.edu
> > [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf
> > Of BaSsMaN
> > Sent: Friday, June 08, 2007 7:41 AM
> > To: gme-users
> > Subject: [gme-users] BON Extender VC7.1 Link errors
> >
> >
> > Hello, I'm having some trouble trying to compile a BON2
> > interpreter that uses BON Extender generated classes. I'm
> > using Visual Studio .NET v7.1.
> >
> > You can see the errors in the attached file BuildLog.htm.
> >
> > The interpreter code is far too large to post it, but there
> > are no compilation problems, only link errors.
> >
> > Thanks in advance, Javier.
> >
> > PD: "Símbolo externo" means "External symbol" and "sin
> > resolver" means "unresolved"
> >
> > --
> > Foro de bajistas:
> > http://foros.guitarramania.com/index.php?f=122&sid=42f46993966
> 672555f04afd7b13feefd
> Mi blog: http://inbasswetrust.blogspot.com
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
--
Foro de bajistas:
http://foros.guitarramania.com/index.php?f=122&sid=42f46993966672555f04afd7b13feefd
Mi blog: http://inbasswetrust.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GRAFCET_BON.zip
Type: application/zip
Size: 15890 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20070610/1c51220b/GRAFCET_BON.zip
More information about the gme-users
mailing list