Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / August 2005



Tip: Looking for answers? Try searching our database.

compile-error in header

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
inx - 23 Aug 2005 08:18 GMT
hello

i want to compile a library, but get a compile-error if i want to make
it.
the error occurs in a header-file and is cpp-code.

Error   : illegal access/using declaration
eyefinder.h line 84     GPrior MPEyeFinder::setROI(FaceObject* &face,
feature_type eye_type);

the error-message points to this line in the source-code:

GPrior MPEyeFinder::setROI(FaceObject* &face, feature_type eye_type);

where GPrior is a structure defined previously in the same header-file:

struct GPrior{
 vector< float > mean;
 vector< vector< float > > cov;
 vector< vector< float > > invCov;
 GPrior();
 void Release();
 GPrior(const vector< float > &mean_, const vector< vector< float > >
&cov_, const vector< vector< float > > &invCov_);
 void SetPrior(const vector< float > &mean_, const vector< vector<
float > > &cov_, const vector< vector< float > > &invCov_);
};

whats wrong there?
can anybody help me?
Ron L - 23 Aug 2005 17:17 GMT
>hello
>
[quoted text clipped - 26 lines]
>whats wrong there?
>can anybody help me?

The error is illegal access or namespace error not return type error.

I'd look more at the access rights  is setROI() a public function is it
delcared the same in MPEyeFinder  etc. but it might be one of the
variables.  Hard to make a guess.

Ron

Signature

CodeWarrior Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and our staff
       --   http://www.codewarrior.com/community  --

Ron Liechty - ron.liechty@freescale.com - http://www.codewarrior.com

inx - 24 Aug 2005 17:43 GMT
thanks for that.

i deleted the namespace before calling the function, now the line looks
like this:

GPrior setROI(FaceObject * &face, feature_type eye_type);

now the library compiles fine.
the only thing is, if i use it, it get this error-message:

Link Error   : undefined:
'righteye_eye_dist_eye_centered::assignData(MPEyeFinder*,FeatureData&)'
(code)
Referenced from 'MPEyeFinderBinary::MPEyeFinderBinary()' in
libmpeyefinder

i know, this goes a little deep into the project, but maybe its a
error, which is easy to fix.

inx
Ron L - 24 Aug 2005 22:33 GMT
>thanks for that.
>
[quoted text clipped - 14 lines]
>i know, this goes a little deep into the project, but maybe its a
>error, which is easy to fix.

it can't find it now cause the source is in namespace and the call isn't
so it is a different name.  It is probably something wrong with your
namespace calling.  

Ron

Signature

CodeWarrior Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and our staff
       --   http://www.codewarrior.com/community  --

Ron Liechty - ron.liechty@freescale.com - http://www.codewarrior.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.