The first problem is because MSVAR defines M_OLS with a different value
from the one in pcfiml.h, which is unfortunate. A simple solution is to
rename the msvar ones in the line to MSV_... After all, these are just
labels for integers, and renaming them doesn't affect their value. Of
course, it would have to be renamed in your code whenever you refer to
the old MSVAR M_ ones.
The second may be harder to solve. Basically, if two sources include an
Ox file, and are then combined, the same code will be inserted twice,
resulting in the duplicate identifier message. PcFiml includes
lib/coigamma.ox, but should have used #import. This is something you can
fix, see src/pcfiml.ox (and has been fixed in the upcoming version 4). I
don't know what MSVAR does, but it may be enough to fix it in PcFiml.
Jurgen.
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
oxoxoxox 4th OxMetrics user conference 2006
oxoxoxox Cass Business School, London
oxoxoxox TBA
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
Dr Jurgen A Doornik
Nuffield College, Oxford OX1 1NF, UK
tel. UK: +44-1865-278610 fax +44-1865-278621
http://www.doornik.com
http://www.oxmetrics.net
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
Juan Camilo Montoya wrote:
> Hello everyone,
>
> this is probably obvious and stupid for some of you, but could anyone give
> me a hand in how to use MSVAR and PCFIML clases in the same program??
>
> as soon as I include
> #import <pcfiml>
> #import <msvar130>
>
> I get error messages like :
>
> C:\Ox/include\msvar130.h (12): 'M_OLS' redefinition of constant
>
> or
>
> Link error: 'GammaParTraceAsymp' duplicate identifier ...
>
> Separately, both packages work fine.
>
>
> thanks a lot for any help...
>
|