using namespace quantlib not working vc7

Posted by svangipu on
URL: http://quantlib.414.s1.nabble.com/using-namespace-quantlib-not-working-vc7-tp3498.html

i have setup quantlib under vc7 on a windows xp laptop.. i have
quantlib working but the namespaces are not working for me.. as soon
as i introduce a namespace i got compile-time errors:
example:
using namespace QuantLib::Pricers;

i get errors
1. errors C2039: 'Pricers': is not a member of 'QuantLib'
2. error C2871:'Pricers':a namespace with this name does not exist..

so as a workaround i am qualifying all references to QuantLib as

QuantLib::FdEuropean callOption =
QuantLib::FdEuropean(QuantLib::Option::Call, currentPrice,
strikePrice, divYield, riskFree, optionLife, vol);

has anyone encountered this kind of problem?.  any ideas to resolve this?